]> pilppa.com Git - familiar-h63xx-build.git/commitdiff
qemu-native: fix setting of EXTRA_OECONF. Thanks to Christian Heinz for spotting.
authorRene Wagner <rw@handhelds.org>
Wed, 5 Jul 2006 20:43:52 +0000 (22:43 +0200)
committerRene Wagner <rw@handhelds.org>
Wed, 5 Jul 2006 20:43:52 +0000 (22:43 +0200)
Signed-off-by: Rene Wagner <rw@handhelds.org>
org.handhelds.familiar/packages/qemu/qemu-native_0.7.0.bb

index 23ad9b02a9a29f2a02966212ac26ff1921314fbb..16236ea47836d4922126b309009812c3f847dec7 100644 (file)
@@ -3,7 +3,7 @@ inherit native
 S = "${WORKDIR}/qemu-${PV}"
 prefix = "${STAGING_DIR}/${BUILD_SYS}"
 
-python do_check_gcc () {
+python __anonymous () {
     from bb import which, data
        
     cc = 'gcc'
@@ -14,9 +14,15 @@ python do_check_gcc () {
     elif len(which(path, 'gcc-3.3')) != 0:
         cc = 'gcc-3.3'
         data.setVar('EXTRA_OECONF', " --cc=gcc-3.3", d)
+    data.setVar('QEMU_CC', cc, d)
+}
 
+python do_check_gcc () {
+    from bb import which, data
+       
     import os
 
+    cc = data.getVar('QEMU_CC', d, 1)
     f = os.popen ("%s --version" % cc, 'r')
     line = f.readline()
     if f.close() or not line: