Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754701AbbHLKlT (ORCPT ); Wed, 12 Aug 2015 06:41:19 -0400 Received: from tundra.namei.org ([65.99.196.166]:33623 "EHLO namei.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750889AbbHLKlR (ORCPT ); Wed, 12 Aug 2015 06:41:17 -0400 Date: Wed, 12 Aug 2015 20:40:50 +1000 (AEST) From: James Morris To: David Woodhouse cc: David Howells , mcgrof@gmail.com, Mimi Zohar , linux-kernel@vger.kernel.org, linux-security-module@vger.kernel.org Subject: Re: [GIT PULL] MODSIGN: Use PKCS#7 for module signatures [ver #7a] In-Reply-To: Message-ID: References: <15181.1439323425@warthog.procyon.org.uk> <1439363265.3100.30.camel@infradead.org> <1439370753.3100.58.camel@infradead.org> <1439373041.3100.64.camel@infradead.org> <1439375000.3100.70.camel@infradead.org> User-Agent: Alpine 2.20 (LRH 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 995 Lines: 33 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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/