]> code.ossystems Code Review - openembedded-core.git/commitdiff
crosssdk/nativesdk: Ensure EXTRA_OECONF_FPU is unset
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 12 Jul 2012 15:25:47 +0000 (16:25 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 17 Jul 2012 09:23:15 +0000 (10:23 +0100)
If EXTRA_OECONF_FPU is left set, certain ARM variables related to hard-float
can get pulled in and trigger rebuilds of the crosssdk code. The best solution
is to simply force the variable to a known correct value for the SDK targets
currently supported in the same way as TARGET_FPU.

There is some slight rearrangement of the gcc code to ensure the variable is
always used to call the fpu function.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
meta/classes/crosssdk.bbclass
meta/classes/nativesdk.bbclass
meta/recipes-devtools/gcc/gcc-cross-initial.inc
meta/recipes-devtools/gcc/gcc-cross-intermediate.inc

index 93aba7022e9415d73464928213e6bc6772ef059b..f3a502ab79799ab78ee96ed216077a901bc72dc3 100644 (file)
@@ -28,3 +28,6 @@ baselib = "lib"
 
 do_populate_sysroot[stamp-extra-info] = ""
 do_package[stamp-extra-info] = ""
+
+# Need to force this to ensure consitency accross architectures
+EXTRA_OECONF_FPU = ""
index a58fce20407a4c24eaaef16b3c4fcb29e63fa20c..7deaafc670bdd5170010ad87e0ff0716d6579852 100644 (file)
@@ -36,6 +36,7 @@ TARGET_CC_ARCH = "${SDK_CC_ARCH}"
 TARGET_LD_ARCH = "${SDK_LD_ARCH}"
 TARGET_AS_ARCH = "${SDK_AS_ARCH}"
 TARGET_FPU = ""
+EXTRA_OECONF_FPU = ""
 
 CPPFLAGS = "${BUILDSDK_CPPFLAGS}"
 CFLAGS = "${BUILDSDK_CFLAGS}"
index faec391dcbfb6c017ce6b34294547cdb22a9ed5e..0523698030657dde7b01c0d28234c99aab111fdd 100644 (file)
@@ -21,7 +21,7 @@ EXTRA_OECONF = "--with-newlib \
                --with-sysroot=${STAGING_DIR_TARGET} \
                --with-build-sysroot=${STAGING_DIR_TARGET} \
                ${EXTRA_OECONF_INITIAL} \
-               ${@get_gcc_fpu_setting(bb, d)}"
+               ${EXTRA_OECONF_FPU}"
 
 do_compile () {
     oe_runmake all-gcc all-target-libgcc
index c940e549c52971b2317dfa21f1622c0875b6cb26..e06926d6e1a21029a101ed1f88826452f3dc24f7 100644 (file)
@@ -23,7 +23,7 @@ EXTRA_OECONF = "--enable-shared \
                --with-sysroot=${STAGING_DIR_TCBOOTSTRAP} \
                --with-build-sysroot=${STAGING_DIR_TCBOOTSTRAP} \
                ${EXTRA_OECONF_INTERMEDIATE} \
-               ${@get_gcc_fpu_setting(bb, d)} \
+               ${EXTRA_OECONF_FPU} \
                ${@base_contains('DISTRO_FEATURES', 'ld-is-gold', '--with-ld=${STAGING_BINDIR_TOOLCHAIN}/${TARGET_PREFIX}ld.bfd', '', d)}"
 
 do_populate_sysroot[sstate-inputdirs] = "${SYSROOT_DESTDIR}/${STAGING_DIR_HOST} ${SYSROOT_DESTDIR}/${STAGING_DIR_TARGET}/${target_base_libdir}"