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:
parent
603087da3c
commit
2e6c3db37b
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue