mirror of
https://git.yoctoproject.org/poky
synced 2026-09-16 18:49:34 +02:00
gcc: remove duplicate methods
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@858 311d38ba-8fff-0310-9ca6-ca027cbcb966
This commit is contained in:
6
meta/packages/gcc/gcc-fpu.inc
Normal file
6
meta/packages/gcc/gcc-fpu.inc
Normal file
@@ -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 ""
|
||||||
|
|
||||||
@@ -54,10 +54,7 @@ ARCH_FLAGS_FOR_TARGET_slugos = "${TARGET_CC_ARCH}"
|
|||||||
ARCH_FLAGS_FOR_TARGET_unslung = "${TARGET_CC_ARCH}"
|
ARCH_FLAGS_FOR_TARGET_unslung = "${TARGET_CC_ARCH}"
|
||||||
EXTRA_OEMAKE += "ARCH_FLAGS_FOR_TARGET='${ARCH_FLAGS_FOR_TARGET}'"
|
EXTRA_OEMAKE += "ARCH_FLAGS_FOR_TARGET='${ARCH_FLAGS_FOR_TARGET}'"
|
||||||
|
|
||||||
def get_gcc_fpu_setting(bb, d):
|
require gcc-fpu.inc
|
||||||
if bb.data.getVar('TARGET_FPU', d, 1) in [ 'soft' ]:
|
|
||||||
return "--with-float=soft"
|
|
||||||
return ""
|
|
||||||
|
|
||||||
python __anonymous () {
|
python __anonymous () {
|
||||||
import bb, re
|
import bb, re
|
||||||
|
|||||||
@@ -58,10 +58,7 @@ ARCH_FLAGS_FOR_TARGET_slugos = "${TARGET_CC_ARCH}"
|
|||||||
ARCH_FLAGS_FOR_TARGET_unslung = "${TARGET_CC_ARCH}"
|
ARCH_FLAGS_FOR_TARGET_unslung = "${TARGET_CC_ARCH}"
|
||||||
EXTRA_OEMAKE += "ARCH_FLAGS_FOR_TARGET='${ARCH_FLAGS_FOR_TARGET}'"
|
EXTRA_OEMAKE += "ARCH_FLAGS_FOR_TARGET='${ARCH_FLAGS_FOR_TARGET}'"
|
||||||
|
|
||||||
def get_gcc_fpu_setting(bb, d):
|
require gcc-fpu.inc
|
||||||
if bb.data.getVar('TARGET_FPU', d, 1) in [ 'soft' ]:
|
|
||||||
return "--with-float=soft"
|
|
||||||
return ""
|
|
||||||
|
|
||||||
python __anonymous () {
|
python __anonymous () {
|
||||||
import bb, re
|
import bb, re
|
||||||
|
|||||||
@@ -101,10 +101,7 @@ EXTRA_OECONF_uclibc = "--disable-__cxa_atexit"
|
|||||||
EXTRA_OECONF_glibc = "--enable-__cxa_atexit"
|
EXTRA_OECONF_glibc = "--enable-__cxa_atexit"
|
||||||
EXTRA_OECONF += "${@get_gcc_fpu_setting(bb, d)}"
|
EXTRA_OECONF += "${@get_gcc_fpu_setting(bb, d)}"
|
||||||
|
|
||||||
def get_gcc_fpu_setting(bb, d):
|
require gcc-fpu.inc
|
||||||
if bb.data.getVar('TARGET_FPU', d, 1) in [ 'soft' ]:
|
|
||||||
return "--with-float=soft"
|
|
||||||
return ""
|
|
||||||
|
|
||||||
python __anonymous () {
|
python __anonymous () {
|
||||||
import bb, re
|
import bb, re
|
||||||
|
|||||||
Reference in New Issue
Block a user