[oe-commits] Tom Rini : gcc-common.inc: In get_gcc_fpu_setting make sure we only do soft float for targets.
GIT User account
git at amethyst.openembedded.net
Mon Feb 16 07:22:05 UTC 2009
Module: openembedded.git
Branch: org.openembedded.dev
Commit: 05ae151bd506b343d7f5de8f0610221393eb55ea
URL: http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=05ae151bd506b343d7f5de8f0610221393eb55ea
Author: Tom Rini <trini at embeddedalley.com>
Date: Mon Feb 16 02:22:43 2009 -0500
gcc-common.inc: In get_gcc_fpu_setting make sure we only do soft float for targets.
When we build canadian toolchains (ie mingw-gcc-cross) we run this function,
but we don't want it really it to so add a check on TARGET_OS=linux.
Fixes building for TARGET_FPU=soft mipsel for example.
---
packages/gcc/gcc-common.inc | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/packages/gcc/gcc-common.inc b/packages/gcc/gcc-common.inc
index 73bc327..9e70af7 100644
--- a/packages/gcc/gcc-common.inc
+++ b/packages/gcc/gcc-common.inc
@@ -7,8 +7,11 @@ inherit autotools gettext
FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/gcc-${PV}"
+# When making a Canadian SDK, we use these files too to make the compiler
+# for building for the new host part. So only obey TARGET_FPU for the
+# real target.
def get_gcc_fpu_setting(bb, d):
- if bb.data.getVar('TARGET_FPU', d, 1) in [ 'soft' ]:
+ if bb.data.getVar('TARGET_FPU', d, 1) in [ 'soft' ] and bb.data.getVar('TARGET_OS', d, 1) in [ 'linux' ]:
return "--with-float=soft"
return ""
More information about the Openembedded-commits
mailing list