1
0
mirror of https://git.yoctoproject.org/poky synced 2026-05-08 17:19:20 +00:00

qemu: Expand PATH and EXTRA_OECONF when locating gcc, add check for gcc-3.4.4

git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3390 311d38ba-8fff-0310-9ca6-ca027cbcb966
This commit is contained in:
Richard Purdie
2007-12-30 00:39:10 +00:00
parent 603087da3c
commit 2e6c3db37b
+5 -3
View File
@@ -1,10 +1,12 @@
python __anonymous() {
from bb import which, data
path = data.getVar('PATH', d)
oldOeConf = data.getVar('EXTRA_OECONF', d)
path = data.getVar('PATH', d, 1)
oldOeConf = data.getVar('EXTRA_OECONF', d, 1)
if not oldOeConf: oldOeConf = ""
if len(which(path, 'gcc-3.4')) != 0:
if len(which(path, 'gcc-3.4.4')) != 0:
data.setVar('EXTRA_OECONF', oldOeConf + " --cc=gcc-3.4.4", d)
elif 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)