f8b928e9ba
This version works on 32 and 64 bit machines. git-svn-id: https://svn.o-hand.com/repos/poky/trunk@2540 311d38ba-8fff-0310-9ca6-ca027cbcb966
19 lines
621 B
BlitzBasic
19 lines
621 B
BlitzBasic
require qemu_${PV}.bb
|
|
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)
|
|
}
|