aboutsummaryrefslogtreecommitdiffstats
path: root/packages/qemu/qemu-native.inc
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@rpsys.net>2006-09-02 18:44:19 +0000
committerRichard Purdie <rpurdie@rpsys.net>2006-09-02 18:44:19 +0000
commit99b80b8615c8e5662827252cf6cb7fc12144f8c2 (patch)
tree6328756276f0e9c33a5aad64d6fc837c925b995e /packages/qemu/qemu-native.inc
parentfb5cfbd9b510692852e9276d0ee99039338d66cf (diff)
downloadopenembedded-99b80b8615c8e5662827252cf6cb7fc12144f8c2.tar.gz
qemu-native: Create qemu-native.bbclass so all versions have the gcc 3.x detection code
Diffstat (limited to 'packages/qemu/qemu-native.inc')
-rw-r--r--packages/qemu/qemu-native.inc13
1 files changed, 13 insertions, 0 deletions
diff --git a/packages/qemu/qemu-native.inc b/packages/qemu/qemu-native.inc
new file mode 100644
index 0000000000..049aa675f8
--- /dev/null
+++ b/packages/qemu/qemu-native.inc
@@ -0,0 +1,13 @@
+FILESPATH =. "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/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)
+
+}