git-svn-id: https://svn.o-hand.com/repos/poky/trunk@2936 311d38ba-8fff-0310-9ca6-ca027cbcb966
21 lines
840 B
C++
21 lines
840 B
C++
python __anonymous() {
|
|
from bb import which, data
|
|
|
|
path = data.getVar('PATH', d)
|
|
oldOeConf = data.getVar('EXTRA_OECONF', d)
|
|
if not oldOeConf: oldOeConf = ""
|
|
if 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)
|
|
elif len(which(path, 'gcc33')) != 0:
|
|
data.setVar('EXTRA_OECONF', oldOeConf + " --cc=gcc33", d)
|
|
elif len(which(path, 'gcc-3.3')) != 0:
|
|
data.setVar('EXTRA_OECONF', oldOeConf + " --cc=gcc-3.3", d)
|
|
elif len(which(path, 'gcc-3.3.6')) != 0:
|
|
data.setVar('EXTRA_OECONF', oldOeConf + " --cc=gcc-3.3.6", d)
|
|
elif len(which(path, 'gcc-3.4.6')) != 0:
|
|
data.setVar('EXTRA_OECONF', oldOeConf + " --cc=gcc-3.4.6", d)
|
|
}
|
|
|