summaryrefslogtreecommitdiff
path: root/meta/packages/qemu/qemu-gcc3-check.inc
diff options
context:
space:
mode:
authorMarcin Juszkiewicz <hrw@openedhand.com>2007-10-19 14:30:34 +0000
committerMarcin Juszkiewicz <hrw@openedhand.com>2007-10-19 14:30:34 +0000
commit128f2debdd95290613e0c2943157439fa863b784 (patch)
tree5cb2e26f09c216951cb52a85a39f6ae617a4058b /meta/packages/qemu/qemu-gcc3-check.inc
parentd8b7e957786e57fc3d0db2014cd428b37b2c0ac9 (diff)
downloadopenembedded-core-128f2debdd95290613e0c2943157439fa863b784.tar.gz
openembedded-core-128f2debdd95290613e0c2943157439fa863b784.tar.bz2
openembedded-core-128f2debdd95290613e0c2943157439fa863b784.zip
qemu: import gcc3 check from OE
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@2936 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/packages/qemu/qemu-gcc3-check.inc')
-rw-r--r--meta/packages/qemu/qemu-gcc3-check.inc20
1 files changed, 20 insertions, 0 deletions
diff --git a/meta/packages/qemu/qemu-gcc3-check.inc b/meta/packages/qemu/qemu-gcc3-check.inc
new file mode 100644
index 0000000000..96b79fdf14
--- /dev/null
+++ b/meta/packages/qemu/qemu-gcc3-check.inc
@@ -0,0 +1,20 @@
+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)
+}
+