From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dan.rpsys.net (5751f4a1.skybroadband.com [87.81.244.161]) by mail.openembedded.org (Postfix) with ESMTP id D71FE766D8 for ; Thu, 6 Aug 2015 23:02:45 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by dan.rpsys.net (8.14.4/8.14.4/Debian-4.1ubuntu1) with ESMTP id t76N2KJr027215; Fri, 7 Aug 2015 00:02:43 +0100 Received: from dan.rpsys.net ([127.0.0.1]) by localhost (dan.rpsys.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id BStdRCtsK0Iu; Fri, 7 Aug 2015 00:02:43 +0100 (BST) Received: from [192.168.3.10] ([192.168.3.10]) (authenticated bits=0) by dan.rpsys.net (8.14.4/8.14.4/Debian-4.1ubuntu1) with ESMTP id t76N2M07027224 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NOT); Fri, 7 Aug 2015 00:02:36 +0100 Message-ID: <1438902142.30467.23.camel@linuxfoundation.org> From: Richard Purdie To: Andre McCurdy Date: Thu, 06 Aug 2015 18:02:22 -0500 In-Reply-To: <1438890086-2710-4-git-send-email-armccurdy@gmail.com> References: <1438890086-2710-1-git-send-email-armccurdy@gmail.com> <1438890086-2710-4-git-send-email-armccurdy@gmail.com> X-Mailer: Evolution 3.12.10-0ubuntu1~14.10.1 Mime-Version: 1.0 Cc: openembedded-core@lists.openembedded.org Subject: Re: [PATCH 3/3] uclibc.inc: avoid immediate expansion for UCLIBC_EXTRA_CFLAGS X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Aug 2015 23:02:47 -0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit On Thu, 2015-08-06 at 12:41 -0700, Andre McCurdy wrote: > If immediate variable expansion is used, then UCLIBC_EXTRA_CFLAGS can > sometimes be derived from a partially expanded value of CFLAGS. > > One specific problem case occurs when security_flags.inc is used: CFLAGS > is evaluated before the SECURITY_CFLAGS_pn-uclibc over-ride has been > applied and therefore UCLIBC_EXTRA_CFLAGS ends up being based on the > default SECURITY_CFLAGS instead of the uclibc specific value. > > Signed-off-by: Andre McCurdy > --- > meta/recipes-core/uclibc/uclibc.inc | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/meta/recipes-core/uclibc/uclibc.inc b/meta/recipes-core/uclibc/uclibc.inc > index c483228..3ed8b60 100644 > --- a/meta/recipes-core/uclibc/uclibc.inc > +++ b/meta/recipes-core/uclibc/uclibc.inc > @@ -57,8 +57,8 @@ export V="2" > # -O -fno-omit-frame-pointer ends up with GCC ICE on thumb as reported > # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44860 > # > -CFLAGS_arm := "${@oe_filter_out('-fno-omit-frame-pointer', '${CFLAGS}', d)}" > -UCLIBC_EXTRA_CFLAGS := "${@oe_filter_out('(-I\S+|-i\S+)', '${CFLAGS}', d)}" > +CFLAGS_arm = "${@oe_filter_out('-fno-omit-frame-pointer', '${CFLAGS}', d)}" I'm rather surprised we don't get circular references without the := operator with this. I suspect we can see build failures if you change the code like this. That said, I've been meaning to go through and replace all the uses of oe_filter_out with the remove operator. Can we do that here please instead? E.g: CFLAGS_remove_arm = "-fno-omit-frame-pointer" > +UCLIBC_EXTRA_CFLAGS = "${@oe_filter_out('(-I\S+|-i\S+)', '${CFLAGS}', d)}" Cheers, Richard