summaryrefslogtreecommitdiff
path: root/packages/qemu/qemu-native_20070613.bb
blob: f0402805703e80ff5a1417ae06be1b6c4a081d50 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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.6')) != 0:
        data.setVar('EXTRA_OECONF', oeconf + " --cc=gcc-3.4.6", d)
    elif 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)
}