]> pilppa.com Git - familiar-h63xx-build.git/commitdiff
qemu-native: use gcc-3.x to build it if available. original patch courtesy of Richard...
authorRene Wagner <rw@handhelds.org>
Sun, 14 May 2006 18:26:35 +0000 (20:26 +0200)
committerRene Wagner <rw@handhelds.org>
Sun, 14 May 2006 18:26:35 +0000 (20:26 +0200)
Signed-off-by: Rene Wagner <rw@handhelds.org>
org.handhelds.familiar/packages/qemu/qemu-native_0.7.0.bb

index caa6f6abc0944c7b242115b3c17150dc1955c37a..9e58b5f176b5556a0dded693a86b0017789bd2e1 100644 (file)
@@ -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)
+
+}