gcc: Move get_gcc_fpu_setting into gcc-common.inc
authorRichard Purdie <rpurdie@rpsys.net>
Sat, 15 Mar 2008 16:50:01 +0000 (16:50 +0000)
committerRichard Purdie <rpurdie@rpsys.net>
Sat, 15 Mar 2008 16:50:01 +0000 (16:50 +0000)
packages/gcc/gcc-3.3.3.inc
packages/gcc/gcc-3.3.4.inc
packages/gcc/gcc-common.inc
packages/gcc/gcc-fpu.inc [deleted file]
packages/gcc/gcc3-build.inc

index 657eb2a..443cfc5 100644 (file)
@@ -69,8 +69,6 @@ EXTRA_OECONF_uclibc = "--disable-__cxa_atexit"
 EXTRA_OECONF_glibc = "--enable-__cxa_atexit"
 EXTRA_OECONF += "${@get_gcc_fpu_setting(bb, d)}"
 
-require gcc-fpu.inc
-
 python __anonymous () {
     import bb, re
     if (re.match('linux-uclibc$', bb.data.getVar('TARGET_OS', d, 1)) != None):
index 6c280c4..baab2a5 100644 (file)
@@ -48,8 +48,6 @@ EXTRA_OECONF_uclibc = "--disable-__cxa_atexit"
 EXTRA_OECONF_glibc = "--enable-__cxa_atexit"
 EXTRA_OECONF += "${@get_gcc_fpu_setting(bb, d)}"
 
-require gcc-fpu.inc
-
 python __anonymous () {
     import bb, re
     if (re.match('linux-uclibc$', bb.data.getVar('TARGET_OS', d, 1)) != None):
index cd2582e..b066434 100644 (file)
@@ -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 ""
+
diff --git a/packages/gcc/gcc-fpu.inc b/packages/gcc/gcc-fpu.inc
deleted file mode 100644 (file)
index bb03d95..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-
-def get_gcc_fpu_setting(bb, d):
-       if bb.data.getVar('TARGET_FPU', d, 1) in [ 'soft' ]:
-               return "--with-float=soft"
-       return ""
-
index e56dcdc..a6f7d3b 100644 (file)
@@ -56,8 +56,6 @@ ARCH_FLAGS_FOR_TARGET_slugos = "${TARGET_CC_ARCH}"
 ARCH_FLAGS_FOR_TARGET_unslung = "${TARGET_CC_ARCH}"
 EXTRA_OEMAKE += "ARCH_FLAGS_FOR_TARGET='${ARCH_FLAGS_FOR_TARGET}'"
 
-require gcc-fpu.inc
-
 do_configure () {
        # Setup these vars for cross building only
        # ... because foo_FOR_TARGET apparently gets misinterpreted inside the