diff options
author | Richard Purdie <richard@openedhand.com> | 2007-12-30 00:39:10 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2007-12-30 00:39:10 +0000 |
commit | 2e6c3db37bae5136673ba4a3793173bb5baaf6ca (patch) | |
tree | 1eeef29d870ed450ab1ffc05a6efa867e79b3e47 /meta | |
parent | 603087da3ce97d277705a41dcc9e51461c31b2ed (diff) | |
download | poky-2e6c3db37bae5136673ba4a3793173bb5baaf6ca.tar.gz |
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
Diffstat (limited to 'meta')
-rw-r--r-- | meta/packages/qemu/qemu-gcc3-check.inc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/meta/packages/qemu/qemu-gcc3-check.inc b/meta/packages/qemu/qemu-gcc3-check.inc index 96b79fdf14..658e72ffc3 100644 --- a/meta/packages/qemu/qemu-gcc3-check.inc +++ b/meta/packages/qemu/qemu-gcc3-check.inc | |||
@@ -1,10 +1,12 @@ | |||
1 | python __anonymous() { | 1 | python __anonymous() { |
2 | from bb import which, data | 2 | from bb import which, data |
3 | 3 | ||
4 | path = data.getVar('PATH', d) | 4 | path = data.getVar('PATH', d, 1) |
5 | oldOeConf = data.getVar('EXTRA_OECONF', d) | 5 | oldOeConf = data.getVar('EXTRA_OECONF', d, 1) |
6 | if not oldOeConf: oldOeConf = "" | 6 | if not oldOeConf: oldOeConf = "" |
7 | if len(which(path, 'gcc-3.4')) != 0: | 7 | if len(which(path, 'gcc-3.4.4')) != 0: |
8 | data.setVar('EXTRA_OECONF', oldOeConf + " --cc=gcc-3.4.4", d) | ||
9 | elif len(which(path, 'gcc-3.4')) != 0: | ||
8 | data.setVar('EXTRA_OECONF', oldOeConf + " --cc=gcc-3.4", d) | 10 | data.setVar('EXTRA_OECONF', oldOeConf + " --cc=gcc-3.4", d) |
9 | elif len(which(path, 'gcc34')) != 0: | 11 | elif len(which(path, 'gcc34')) != 0: |
10 | data.setVar('EXTRA_OECONF', oldOeConf + " --cc=gcc34", d) | 12 | data.setVar('EXTRA_OECONF', oldOeConf + " --cc=gcc34", d) |