]> code.ossystems Code Review - openembedded-core.git/commitdiff
qemu: Expand PATH and EXTRA_OECONF when locating gcc, add check for gcc-3.4.4
authorRichard Purdie <richard@openedhand.com>
Sun, 30 Dec 2007 00:39:10 +0000 (00:39 +0000)
committerRichard Purdie <richard@openedhand.com>
Sun, 30 Dec 2007 00:39:10 +0000 (00:39 +0000)
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3390 311d38ba-8fff-0310-9ca6-ca027cbcb966

meta/packages/qemu/qemu-gcc3-check.inc

index 96b79fdf14081252e0c0f0b919921876c2be9820..658e72ffc321008021907779c9eaa2a1552fd1bc 100644 (file)
@@ -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)