]> code.ossystems Code Review - openembedded-core.git/commitdiff
eglibc-initial: Fix build failure due to missing limits.h
authorKhem Raj <raj.khem@gmail.com>
Tue, 24 Jul 2012 05:36:44 +0000 (22:36 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 26 Jul 2012 13:39:49 +0000 (14:39 +0100)
We have had these things in place to overcome a limitation
from our gcc-initial-cross not staging a self sufficient
limits.h. Now thats fixed we do reset TOOLCHAIN_OPTIONS
to point to sysroot where linux kernel headers are staged
and not the bootstrap sysroot which will infact be popuated
by eglibc-initial itself.

Secondly we dont need to set CPPFLAGS specially as we
are doing that in eglibc.inc so we override that

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
meta/recipes-core/eglibc/eglibc-initial.inc
meta/recipes-core/eglibc/eglibc-initial_2.16.bb
meta/recipes-core/eglibc/eglibc_2.16.bb

index 906251633b2f0d1a59dac3d893e6e0763b7f0e10..1020e402d34cdccd330fa61b713e0a5798073514 100644 (file)
@@ -8,6 +8,7 @@ PACKAGES_DYNAMIC = ""
 
 STAGINGCC = "gcc-cross-initial"
 STAGINGCC_virtclass-nativesdk = "gcc-crosssdk-initial"
+TOOLCHAIN_OPTIONS = " --sysroot=${STAGING_DIR_TARGET}"
 
 do_configure () {
        sed -ie 's,{ (exit 1); exit 1; }; },{ (exit 0); }; },g' ${S}/configure
index 787c762609d6b6f58852b3d4acd12cf9ce0f6f8e..f6b09ac98755e2f8313e5e39ad942e3217ead8e2 100644 (file)
@@ -1,6 +1,9 @@
 require eglibc_${PV}.bb
 require eglibc-initial.inc
 
-do_configure_prepend () {
-        unset CFLAGS
-}
+# main eglibc recipes muck with TARGET_CPPFLAGS to point into
+# final target sysroot but we
+# are not there when building eglibc-initial
+# so reset it here
+
+TARGET_CPPFLAGS = ""
index b76d94320e9ffd8ef9be977e76bd84270493b101..fc3d82bd8c66fa63c1f8b7a9f51f6419a6663d82 100644 (file)
@@ -3,7 +3,7 @@ require eglibc.inc
 SRCREV = "19383"
 
 DEPENDS += "gperf-native"
-PR = "r1"
+PR = "r2"
 PR_append = "+svnr${SRCPV}"
 
 EGLIBC_BRANCH="eglibc-2_16"