diff options
author | Richard Purdie <richard@openedhand.com> | 2006-11-16 14:39:22 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2006-11-16 14:39:22 +0000 |
commit | 883741fc1d36288537dfbb714ce8045ed23e27ec (patch) | |
tree | 8223e7f50aca85f5c84336d00df7e0a103bb0a57 /meta/packages/gcc | |
parent | 62fab4d0e1dbf75822455fc3efcb9dc0af70bc89 (diff) | |
download | poky-883741fc1d36288537dfbb714ce8045ed23e27ec.tar.gz |
gcc: remove duplicate methods
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@858 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/packages/gcc')
-rw-r--r-- | meta/packages/gcc/gcc-fpu.inc | 6 | ||||
-rw-r--r-- | meta/packages/gcc/gcc3-build.inc | 5 | ||||
-rw-r--r-- | meta/packages/gcc/gcc4-build.inc | 5 | ||||
-rw-r--r-- | meta/packages/gcc/gcc_3.3.4.bb | 5 |
4 files changed, 9 insertions, 12 deletions
diff --git a/meta/packages/gcc/gcc-fpu.inc b/meta/packages/gcc/gcc-fpu.inc new file mode 100644 index 0000000000..bb03d95567 --- /dev/null +++ b/meta/packages/gcc/gcc-fpu.inc | |||
@@ -0,0 +1,6 @@ | |||
1 | |||
2 | def get_gcc_fpu_setting(bb, d): | ||
3 | if bb.data.getVar('TARGET_FPU', d, 1) in [ 'soft' ]: | ||
4 | return "--with-float=soft" | ||
5 | return "" | ||
6 | |||
diff --git a/meta/packages/gcc/gcc3-build.inc b/meta/packages/gcc/gcc3-build.inc index 8048b45fba..fbf40af6e4 100644 --- a/meta/packages/gcc/gcc3-build.inc +++ b/meta/packages/gcc/gcc3-build.inc | |||
@@ -54,10 +54,7 @@ ARCH_FLAGS_FOR_TARGET_slugos = "${TARGET_CC_ARCH}" | |||
54 | ARCH_FLAGS_FOR_TARGET_unslung = "${TARGET_CC_ARCH}" | 54 | ARCH_FLAGS_FOR_TARGET_unslung = "${TARGET_CC_ARCH}" |
55 | EXTRA_OEMAKE += "ARCH_FLAGS_FOR_TARGET='${ARCH_FLAGS_FOR_TARGET}'" | 55 | EXTRA_OEMAKE += "ARCH_FLAGS_FOR_TARGET='${ARCH_FLAGS_FOR_TARGET}'" |
56 | 56 | ||
57 | def get_gcc_fpu_setting(bb, d): | 57 | require gcc-fpu.inc |
58 | if bb.data.getVar('TARGET_FPU', d, 1) in [ 'soft' ]: | ||
59 | return "--with-float=soft" | ||
60 | return "" | ||
61 | 58 | ||
62 | python __anonymous () { | 59 | python __anonymous () { |
63 | import bb, re | 60 | import bb, re |
diff --git a/meta/packages/gcc/gcc4-build.inc b/meta/packages/gcc/gcc4-build.inc index 0f86ff2a31..817d8b5e73 100644 --- a/meta/packages/gcc/gcc4-build.inc +++ b/meta/packages/gcc/gcc4-build.inc | |||
@@ -58,10 +58,7 @@ ARCH_FLAGS_FOR_TARGET_slugos = "${TARGET_CC_ARCH}" | |||
58 | ARCH_FLAGS_FOR_TARGET_unslung = "${TARGET_CC_ARCH}" | 58 | ARCH_FLAGS_FOR_TARGET_unslung = "${TARGET_CC_ARCH}" |
59 | EXTRA_OEMAKE += "ARCH_FLAGS_FOR_TARGET='${ARCH_FLAGS_FOR_TARGET}'" | 59 | EXTRA_OEMAKE += "ARCH_FLAGS_FOR_TARGET='${ARCH_FLAGS_FOR_TARGET}'" |
60 | 60 | ||
61 | def get_gcc_fpu_setting(bb, d): | 61 | require gcc-fpu.inc |
62 | if bb.data.getVar('TARGET_FPU', d, 1) in [ 'soft' ]: | ||
63 | return "--with-float=soft" | ||
64 | return "" | ||
65 | 62 | ||
66 | python __anonymous () { | 63 | python __anonymous () { |
67 | import bb, re | 64 | import bb, re |
diff --git a/meta/packages/gcc/gcc_3.3.4.bb b/meta/packages/gcc/gcc_3.3.4.bb index 1fca01f2f4..e49316c768 100644 --- a/meta/packages/gcc/gcc_3.3.4.bb +++ b/meta/packages/gcc/gcc_3.3.4.bb | |||
@@ -101,10 +101,7 @@ EXTRA_OECONF_uclibc = "--disable-__cxa_atexit" | |||
101 | EXTRA_OECONF_glibc = "--enable-__cxa_atexit" | 101 | EXTRA_OECONF_glibc = "--enable-__cxa_atexit" |
102 | EXTRA_OECONF += "${@get_gcc_fpu_setting(bb, d)}" | 102 | EXTRA_OECONF += "${@get_gcc_fpu_setting(bb, d)}" |
103 | 103 | ||
104 | def get_gcc_fpu_setting(bb, d): | 104 | require gcc-fpu.inc |
105 | if bb.data.getVar('TARGET_FPU', d, 1) in [ 'soft' ]: | ||
106 | return "--with-float=soft" | ||
107 | return "" | ||
108 | 105 | ||
109 | python __anonymous () { | 106 | python __anonymous () { |
110 | import bb, re | 107 | import bb, re |