gcc: remove duplicate methods
authorRichard Purdie <richard@openedhand.com>
Thu, 16 Nov 2006 14:39:22 +0000 (14:39 +0000)
committerRichard Purdie <richard@openedhand.com>
Thu, 16 Nov 2006 14:39:22 +0000 (14:39 +0000)
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@858 311d38ba-8fff-0310-9ca6-ca027cbcb966

meta/packages/gcc/gcc-fpu.inc [new file with mode: 0644]
meta/packages/gcc/gcc3-build.inc
meta/packages/gcc/gcc4-build.inc
meta/packages/gcc/gcc_3.3.4.bb

diff --git a/meta/packages/gcc/gcc-fpu.inc b/meta/packages/gcc/gcc-fpu.inc
new file mode 100644 (file)
index 0000000..bb03d95
--- /dev/null
@@ -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 ""
+
index 8048b45..fbf40af 100644 (file)
@@ -54,10 +54,7 @@ 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}'"
 
-def get_gcc_fpu_setting(bb, d):
-       if bb.data.getVar('TARGET_FPU', d, 1) in [ 'soft' ]:
-               return "--with-float=soft"
-       return ""
+require gcc-fpu.inc
 
 python __anonymous () {
     import bb, re
index 0f86ff2..817d8b5 100644 (file)
@@ -58,10 +58,7 @@ 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}'"
 
-def get_gcc_fpu_setting(bb, d):
-       if bb.data.getVar('TARGET_FPU', d, 1) in [ 'soft' ]:
-               return "--with-float=soft"
-       return ""
+require gcc-fpu.inc
 
 python __anonymous () {
     import bb, re
index 1fca01f..e49316c 100644 (file)
@@ -101,10 +101,7 @@ EXTRA_OECONF_uclibc = "--disable-__cxa_atexit"
 EXTRA_OECONF_glibc = "--enable-__cxa_atexit"
 EXTRA_OECONF += "${@get_gcc_fpu_setting(bb, d)}"
 
-def get_gcc_fpu_setting(bb, d):
-       if bb.data.getVar('TARGET_FPU', d, 1) in [ 'soft' ]:
-               return "--with-float=soft"
-       return ""
+require gcc-fpu.inc
 
 python __anonymous () {
     import bb, re