mirror of
https://git.yoctoproject.org/poky
synced 2026-04-17 18:32:12 +02: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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user