]> code.ossystems Code Review - openembedded-core.git/commitdiff
gcc-common: Enable hardfloat ABI when target is arm
authorKhem Raj <raj.khem@gmail.com>
Sat, 9 Jun 2012 22:19:23 +0000 (22:19 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 11 Jun 2012 12:42:37 +0000 (13:42 +0100)
We need to check target to be arm before enabling hard-float
ABI. There are crossdk targets or candian-cross targets built
for arm and we should not enable it for those class of recipes.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
meta/recipes-devtools/gcc/gcc-common.inc

index c47940349afe0dde96718e93eb5bd1733b2b9798..7911ceb0f39fcd78c9e6b1298df83d67b683bbc5 100644 (file)
@@ -10,7 +10,7 @@ inherit autotools gettext
 FILESDIR = "${@os.path.dirname(d.getVar('FILE',1))}/gcc-${PV}"
 
 def get_gcc_fpu_setting(bb, d):
-    if d.getVar('ARMPKGSFX_EABI', True) is "hf":
+    if d.getVar('ARMPKGSFX_EABI', True) is "hf" and  d.getVar('TRANSLATED_TARGET_ARCH', True) is "arm":
         return "--with-float=hard"
     if d.getVar('TARGET_FPU', True) in [ 'soft' ]:
         return "--with-float=soft"