From: Rene Wagner Date: Sun, 14 May 2006 18:26:35 +0000 (+0200) Subject: qemu-native: use gcc-3.x to build it if available. original patch courtesy of Richard... X-Git-Tag: familiar-v0.8.4-rc3~95 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=bc1593ed9d5de49ad87b0c5a8ca6edb7c912853c;p=familiar-h63xx-build.git qemu-native: use gcc-3.x to build it if available. original patch courtesy of Richard Purdie. 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 caa6f6a..9e58b5f 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,3 +3,13 @@ inherit native S = "${WORKDIR}/qemu-${PV}" prefix = "${STAGING_DIR}/${BUILD_SYS}" +python __anonymous() { + from bb import which, data + + path = data.getVar('PATH', d) + if len(which(path, 'gcc-3.4')) != 0: + data.setVar('EXTRA_OECONF', " --cc=gcc-3.4", d) + elif len(which(path, 'gcc-3.3')) != 0: + data.setVar('EXTRA_OECONF', " --cc=gcc-3.3", d) + +}