aboutsummaryrefslogtreecommitdiffstats
path: root/recipes
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2010-10-20 14:45:13 -0700
committerKhem Raj <raj.khem@gmail.com>2010-10-20 14:48:24 -0700
commit435d22298a71ded7494db02b8cedf5b17307af75 (patch)
tree73d1b2d5cd23957f1260a5bd3c858bcae1029856 /recipes
parent4477ea5d1a0f35f050d4e230d944778822034de8 (diff)
downloadopenembedded-435d22298a71ded7494db02b8cedf5b17307af75.tar.gz
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@gmail.com>
Diffstat (limited to 'recipes')
-rw-r--r--recipes/binutils/binutils.inc8
1 files changed, 6 insertions, 2 deletions
diff --git a/recipes/binutils/binutils.inc b/recipes/binutils/binutils.inc
index b90451f0ba..0f086f389c 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"