Re: [GIT PULL] MODSIGN: Use PKCS#7 for module signatures [ver #7a]

From: James Morris
Date: Wed Aug 12 2015 - 06:41:22 EST


On Wed, 12 Aug 2015, James Morris wrote:

> > define config_filename =
>
> This may be relevant:
>
> http://stackoverflow.com/questions/13260396/gnu-make-3-81-eval-function-not-working
>

This works for me:

diff --git a/kernel/Makefile b/kernel/Makefile
index 9e31922..65ef384 100644
--- a/kernel/Makefile
+++ b/kernel/Makefile
@@ -150,7 +150,7 @@ space :=
space +=
space_escape := %%%SPACE%%%
#
-define config_filename =
+define config_filename
ifneq ($$(CONFIG_$(1)),"")
$(1)_FILENAME := $$(subst \\,\,$$(subst \$$(quote),$$(quote),$$(subst $$(space_escape),\$$(space),$$(patsubst "%",%,$$(subst $$(space),$$(space_escape),$$(CONFIG_$(1)))))))
ifneq ($$(patsubst /%,%,$$(firstword $$($(1)_FILENAME))),$$(firstword $$($(1)_FILENAME)))




--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/