From 636593b8ac15d5f930d62776a7b15475d006c1d3 Mon Sep 17 00:00:00 2001 From: Rene Wagner Date: Wed, 5 Jul 2006 22:43:52 +0200 Subject: [PATCH] qemu-native: fix setting of EXTRA_OECONF. Thanks to Christian Heinz for spotting. Signed-off-by: Rene Wagner --- org.handhelds.familiar/packages/qemu/qemu-native_0.7.0.bb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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: -- 2.41.1