]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/qemu/qemu-native.inc
qemu: add cvs version from 20060723. bb files contain fix for building qemu with...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / qemu / qemu-native.inc
1 FILESPATH =. "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/qemu-${PV}:"
2 # prefix = "${STAGING_DIR}/${BUILD_SYS}"
3 DEPENDS = "libsdl-native"
4
5 do_configure_prepend() {
6         sed -i -e s,sdl-config,sdl-config-native, configure
7 }
8
9 python __anonymous() {
10     from bb import which, data
11         
12     path = data.getVar('PATH', d)
13     oldOeConf = data.getVar('EXTRA_OECONF', d)
14     if not oldOeConf: oldOeConf = ""
15     if len(which(path, 'gcc-3.4')) != 0:
16         data.setVar('EXTRA_OECONF', oldOeConf + " --cc=gcc-3.4", d)
17     elif len(which(path, 'gcc-3.3')) != 0:
18         data.setVar('EXTRA_OECONF', oldOeConf + " --cc=gcc-3.3", d)
19     elif len(which(path, 'gcc-3.3.6')) != 0:
20         data.setVar('EXTRA_OECONF', oldOeConf + " --cc=gcc-3.3.6", d)
21 }
22
23 do_stage() {
24         find . -name "qemu-*" -type f -perm -755 -exec install -m 0755 {} ${STAGING_BINDIR} \;
25 }