summaryrefslogtreecommitdiff
path: root/packages/gcc/gcc-common.inc
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@rpsys.net>2008-03-15 16:50:01 +0000
committerRichard Purdie <rpurdie@rpsys.net>2008-03-15 16:50:01 +0000
commit1caf47754d044d04cd4f94885d3115d2914144b7 (patch)
tree2054fe3648a863b744aaa706c038a5f3818ffd27 /packages/gcc/gcc-common.inc
parent035ff193ec403f2ed7903942897d100656dc1b17 (diff)
gcc: Move get_gcc_fpu_setting into gcc-common.inc
Diffstat (limited to 'packages/gcc/gcc-common.inc')
-rw-r--r--packages/gcc/gcc-common.inc6
1 files changed, 6 insertions, 0 deletions
diff --git a/packages/gcc/gcc-common.inc b/packages/gcc/gcc-common.inc
index cd2582e160..b066434cfd 100644
--- a/packages/gcc/gcc-common.inc
+++ b/packages/gcc/gcc-common.inc
@@ -4,3 +4,9 @@ SECTION = "devel"
LICENSE = "GPL"
inherit autotools gettext
+
+def get_gcc_fpu_setting(bb, d):
+ if bb.data.getVar('TARGET_FPU', d, 1) in [ 'soft' ]:
+ return "--with-float=soft"
+ return ""
+