summaryrefslogtreecommitdiff
path: root/packages/gcc/gcc-fpu.inc
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@rpsys.net>2006-11-09 22:54:26 +0000
committerRichard Purdie <rpurdie@rpsys.net>2006-11-09 22:54:26 +0000
commitb74404fea18ab4304a409f395ab65c185c750d23 (patch)
treeb2f646b0bfc92774c7780e32262ade1d11ad54b0 /packages/gcc/gcc-fpu.inc
parent13932dbeac7d0e2760e42618705485e1bb05422a (diff)
gcc: Factor get_gcc_fpu_setting() into a common .inc file (removing method errors)
Diffstat (limited to 'packages/gcc/gcc-fpu.inc')
-rw-r--r--packages/gcc/gcc-fpu.inc6
1 files changed, 6 insertions, 0 deletions
diff --git a/packages/gcc/gcc-fpu.inc b/packages/gcc/gcc-fpu.inc
new file mode 100644
index 0000000000..bb03d95567
--- /dev/null
+++ b/packages/gcc/gcc-fpu.inc
@@ -0,0 +1,6 @@
+
+def get_gcc_fpu_setting(bb, d):
+ if bb.data.getVar('TARGET_FPU', d, 1) in [ 'soft' ]:
+ return "--with-float=soft"
+ return ""
+