1
0
mirror of https://git.yoctoproject.org/poky synced 2026-05-08 05:09:24 +00:00

qemu: import gcc3 check from OE

git-svn-id: https://svn.o-hand.com/repos/poky/trunk@2936 311d38ba-8fff-0310-9ca6-ca027cbcb966
This commit is contained in:
Marcin Juszkiewicz
2007-10-19 14:30:34 +00:00
parent d8b7e95778
commit 128f2debdd
3 changed files with 22 additions and 26 deletions
+20
View File
@@ -0,0 +1,20 @@
python __anonymous() {
from bb import which, data
path = data.getVar('PATH', d)
oldOeConf = data.getVar('EXTRA_OECONF', d)
if not oldOeConf: oldOeConf = ""
if len(which(path, 'gcc-3.4')) != 0:
data.setVar('EXTRA_OECONF', oldOeConf + " --cc=gcc-3.4", d)
elif len(which(path, 'gcc34')) != 0:
data.setVar('EXTRA_OECONF', oldOeConf + " --cc=gcc34", d)
elif len(which(path, 'gcc33')) != 0:
data.setVar('EXTRA_OECONF', oldOeConf + " --cc=gcc33", d)
elif len(which(path, 'gcc-3.3')) != 0:
data.setVar('EXTRA_OECONF', oldOeConf + " --cc=gcc-3.3", d)
elif len(which(path, 'gcc-3.3.6')) != 0:
data.setVar('EXTRA_OECONF', oldOeConf + " --cc=gcc-3.3.6", d)
elif len(which(path, 'gcc-3.4.6')) != 0:
data.setVar('EXTRA_OECONF', oldOeConf + " --cc=gcc-3.4.6", d)
}
+1 -13
View File
@@ -3,16 +3,4 @@ inherit native
DEPENDS = "zlib-native"
prefix = "${STAGING_DIR}/${BUILD_SYS}"
python __anonymous() {
from bb import which, data
path = data.getVar('PATH', d)
oeconf = data.getVar('EXTRA_OECONF', d) or ''
if len(which(path, 'gcc-3.4')) != 0:
data.setVar('EXTRA_OECONF', oeconf + " --cc=gcc-3.4", d)
elif len(which(path, 'gcc34')) != 0:
data.setVar('EXTRA_OECONF', oeconf + " --cc=gcc34", d)
elif len(which(path, 'gcc-3.3')) != 0:
data.setVar('EXTRA_OECONF', oeconf + " --cc=gcc-3.3", d)
#data.setVarFlag('PKG_CONFIG_PATH', 'unexport', '1', d)
}
require qemu-gcc3-check.inc
+1 -13
View File
@@ -3,16 +3,4 @@ inherit native
DEPENDS = "zlib-native"
prefix = "${STAGING_DIR}/${BUILD_SYS}"
python __anonymous() {
from bb import which, data
path = data.getVar('PATH', d)
oeconf = data.getVar('EXTRA_OECONF', d) or ''
if len(which(path, 'gcc-3.4')) != 0:
data.setVar('EXTRA_OECONF', oeconf + " --cc=gcc-3.4", d)
elif len(which(path, 'gcc34')) != 0:
data.setVar('EXTRA_OECONF', oeconf + " --cc=gcc34", d)
elif len(which(path, 'gcc-3.3')) != 0:
data.setVar('EXTRA_OECONF', oeconf + " --cc=gcc-3.3", d)
#data.setVarFlag('PKG_CONFIG_PATH', 'unexport', '1', d)
}
require qemu-gcc3-check.inc