summaryrefslogtreecommitdiff
path: root/packages/qemu/qemu-native.inc
diff options
context:
space:
mode:
authorMichael Lauer <mickey@vanille-media.de>2007-08-23 13:03:02 +0000
committerMichael Lauer <mickey@vanille-media.de>2007-08-23 13:03:02 +0000
commit6bb48250893f4d11501a3706f1b1b9d8245e8e1b (patch)
treed89762fce7fa84685bb9f39ab13bcd94d7c61ede /packages/qemu/qemu-native.inc
parent32a0895591cb085f7e71b7d83b9f73782d20cc3d (diff)
qemu: factor out gcc3 check function and include it
Diffstat (limited to 'packages/qemu/qemu-native.inc')
-rw-r--r--packages/qemu/qemu-native.inc20
1 files changed, 1 insertions, 19 deletions
diff --git a/packages/qemu/qemu-native.inc b/packages/qemu/qemu-native.inc
index 81f09446dd..f97e031f73 100644
--- a/packages/qemu/qemu-native.inc
+++ b/packages/qemu/qemu-native.inc
@@ -2,25 +2,7 @@ FILESPATH =. "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/qemu-${PV}:"
# prefix = "${STAGING_DIR}/${BUILD_SYS}"
DEPENDS = "libsdl-native zlib-native"
-python __anonymous() {
- from bb import which, data
-
- path = data.getVar('PATH', d)
- oldOeConf = data.getVar('EXTRA_OECONF', d)
- if not oldOeConf: oldOeConf = ""
- if len(which(path, 'gcc-3.4')) != 0:
- data.setVar('EXTRA_OECONF', oldOeConf + " --cc=gcc-3.4", d)
- elif len(which(path, 'gcc34')) != 0:
- data.setVar('EXTRA_OECONF', oldOeConf + " --cc=gcc34", d)
- elif len(which(path, 'gcc33')) != 0:
- data.setVar('EXTRA_OECONF', oldOeConf + " --cc=gcc33", d)
- elif len(which(path, 'gcc-3.3')) != 0:
- data.setVar('EXTRA_OECONF', oldOeConf + " --cc=gcc-3.3", d)
- elif len(which(path, 'gcc-3.3.6')) != 0:
- data.setVar('EXTRA_OECONF', oldOeConf + " --cc=gcc-3.3.6", d)
- elif len(which(path, 'gcc-3.4.6')) != 0:
- data.setVar('EXTRA_OECONF', oldOeConf + " --cc=gcc-3.4.6", d)
-}
+require qemu-gcc3-check.inc
do_stage() {
find . -name "qemu-*" -type f -perm -755 -exec install -m 0755 {} ${STAGING_BINDIR} \;