From 99b80b8615c8e5662827252cf6cb7fc12144f8c2 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Sat, 2 Sep 2006 18:44:19 +0000 Subject: qemu-native: Create qemu-native.bbclass so all versions have the gcc 3.x detection code --- packages/qemu/qemu-native.inc | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 packages/qemu/qemu-native.inc (limited to 'packages/qemu/qemu-native.inc') 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) + +} -- cgit v1.2.3