aboutsummaryrefslogtreecommitdiffstats
path: root/packages/qemu/qemu-native.inc
diff options
context:
space:
mode:
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)
+
+}