summaryrefslogtreecommitdiff
path: root/packages/qemu/qemu-gcc3-check.inc
diff options
context:
space:
mode:
authorOpenmoko anonymizer key <devel@lists.openmoko.org>2007-08-28 12:23:48 +0000
committerOpenmoko anonymizer key <devel@lists.openmoko.org>2007-08-28 12:23:48 +0000
commit470ee21d142e13256311cbf9b62f2048ccf14307 (patch)
treef9d903cf77282310d20be7c3e2b901970174bad6 /packages/qemu/qemu-gcc3-check.inc
parent6503796b61702d81c61c76b79c6f33bc28eb9f44 (diff)
parent364152cb3c7bd6f666a8ca8964e949297412bac2 (diff)
merge of '715411a278a0c3f0aa1f31adfd5cd77fd9d730d5'
and '95e88a1838246f2647083a1824d4136e4b3f2073'
Diffstat (limited to 'packages/qemu/qemu-gcc3-check.inc')
-rw-r--r--packages/qemu/qemu-gcc3-check.inc20
1 files changed, 20 insertions, 0 deletions
diff --git a/packages/qemu/qemu-gcc3-check.inc b/packages/qemu/qemu-gcc3-check.inc
new file mode 100644
index 0000000000..96b79fdf14
--- /dev/null
+++ b/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)
+}
+