]> code.ossystems Code Review - openembedded-core.git/commitdiff
gcc: Grok for callconvention-hard to enable hard float
authorKhem Raj <raj.khem@gmail.com>
Tue, 1 May 2012 05:00:17 +0000 (22:00 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 24 May 2012 07:34:48 +0000 (08:34 +0100)
If callconvention-hard is set then we build gcc defaulting
to hard-float ABI

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

index f550aab27ae498b964f77b9a642325859cf6e43b..c47940349afe0dde96718e93eb5bd1733b2b9798 100644 (file)
@@ -10,6 +10,8 @@ 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":
+        return "--with-float=hard"
     if d.getVar('TARGET_FPU', True) in [ 'soft' ]:
         return "--with-float=soft"
     if d.getVar('TARGET_FPU', True) in [ 'ppc-efd' ]: