From: Rene Wagner Date: Wed, 5 Jul 2006 20:43:52 +0000 (+0200) Subject: qemu-native: fix setting of EXTRA_OECONF. Thanks to Christian Heinz for spotting. X-Git-Tag: familiar-v0.8.4-rc3~27 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=636593b8ac15d5f930d62776a7b15475d006c1d3;p=familiar-h63xx-build.git qemu-native: fix setting of EXTRA_OECONF. Thanks to Christian Heinz for spotting. Signed-off-by: Rene Wagner --- diff --git a/org.handhelds.familiar/packages/qemu/qemu-native_0.7.0.bb b/org.handhelds.familiar/packages/qemu/qemu-native_0.7.0.bb index 23ad9b0..16236ea 100644 --- a/org.handhelds.familiar/packages/qemu/qemu-native_0.7.0.bb +++ b/org.handhelds.familiar/packages/qemu/qemu-native_0.7.0.bb @@ -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: