]> code.ossystems Code Review - openembedded-core.git/commitdiff
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 8048b45fba91718f103930e05c734ff404d6f175..fbf40af6e4e738e1726e9a2acab5bb77315d881f 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 0f86ff2a312b275e525c30cf9e6ccbb64bfbd4a6..817d8b5e73b88fc577162c2c427e913467b5cc9e 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 1fca01f2f4587daa4c41f1265eeaad83ba526d34..e49316c768ad486b5bb1d3fbf4a3859613e6139b 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