diff options
-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) |