summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@rpsys.net>2007-12-30 18:33:14 +0000
committerRichard Purdie <rpurdie@rpsys.net>2007-12-30 18:33:14 +0000
commitf2025617b19171d9221650f555918bea43dd95c6 (patch)
tree9841a35da401e0be1693b33f1c768e4b49589e94 /packages
parentcc2ba755d5ef5a3dd865f2dc173b3f8142e520a5 (diff)
qemu: Fix .inc file to expand PATH and EXTRA_OECONF and check for gcc-3.4.4 as a priority
Diffstat (limited to 'packages')
-rw-r--r--packages/qemu/qemu-gcc3-check.inc8
1 files changed, 5 insertions, 3 deletions
diff --git a/packages/qemu/qemu-gcc3-check.inc b/packages/qemu/qemu-gcc3-check.inc
index 96b79fdf14..658e72ffc3 100644
--- a/packages/qemu/qemu-gcc3-check.inc
+++ b/packages/qemu/qemu-gcc3-check.inc
@@ -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)