mirror of
https://git.yoctoproject.org/poky
synced 2026-05-08 05:09:24 +00: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:
@@ -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}"
|
||||
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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user