[oe-commits] Khem Raj : binutils.inc: Use anon python to grok CONFIGUREOPTS
git version control
git at git.openembedded.org
Fri Oct 22 03:30:53 UTC 2010
Module: openembedded.git
Branch: kergoth/autotools
Commit: 435d22298a71ded7494db02b8cedf5b17307af75
URL: http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=435d22298a71ded7494db02b8cedf5b17307af75
Author: Khem Raj <raj.khem at gmail.com>
Date: Wed Oct 20 14:45:13 2010 -0700
binutils.inc: Use anon python to grok CONFIGUREOPTS
* Immediate evaluation worked fine when the package was for target
but failed for cross because cross bbclass is inherited after
this evaluation happens and the configure parameters are pre
evaluated which are incorrect for binutils-cross build, therefore
we need to evaluate this expression at very end of parsing the recipe
Signed-off-by: Khem Raj <raj.khem at gmail.com>
---
recipes/binutils/binutils.inc | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/recipes/binutils/binutils.inc b/recipes/binutils/binutils.inc
index b90451f..0f086f3 100644
--- a/recipes/binutils/binutils.inc
+++ b/recipes/binutils/binutils.inc
@@ -3,7 +3,7 @@ HOMEPAGE = "http://www.gnu.org/software/binutils/"
SECTION = "devel"
LICENSE = "GPL"
-INC_PR = "r11"
+INC_PR = "r12"
COMPATIBLE_TARGET_SYS ?= "(?!nios2)"
@@ -42,7 +42,11 @@ B = "${S}/build.${HOST_SYS}.${TARGET_SYS}"
EXTRA_OECONF = "--program-prefix=${TARGET_PREFIX} \
--enable-shared"
-CONFIGUREOPTS := "${@oe_filter_out('--with-sysroot$', '${CONFIGUREOPTS}', d)}"
+python __anonymous () {
+ cfg = oe_filter_out('--with-sysroot$' , bb.data.getVar('CONFIGUREOPTS', d, 1) or "", d)
+ bb.data.setVar('CONFIGUREOPTS', cfg, d)
+}
+
# This is necessary due to a bug in the binutils Makefiles
EXTRA_OEMAKE = "configure-build-libiberty all"
More information about the Openembedded-commits
mailing list