1*8460358cSPatrick WilliamsBPN = "qemu" 2*8460358cSPatrick Williams 3*8460358cSPatrick Williamsrequire qemu-native.inc 4*8460358cSPatrick Williams 5*8460358cSPatrick Williams# As some of the files installed by qemu-native and qemu-system-native 6*8460358cSPatrick Williams# are the same, we depend on qemu-native to get the full installation set 7*8460358cSPatrick Williams# and avoid file clashes 8*8460358cSPatrick WilliamsDEPENDS += "glib-2.0-native zlib-native pixman-native qemu-native" 9*8460358cSPatrick Williams 10*8460358cSPatrick WilliamsEXTRA_OECONF:append = " --target-list=${@get_qemu_system_target_list(d)}" 11*8460358cSPatrick Williams 12*8460358cSPatrick WilliamsPACKAGECONFIG ??= "fdt alsa kvm pie slirp png \ 13*8460358cSPatrick Williams ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'virglrenderer epoxy', '', d)} \ 14*8460358cSPatrick Williams" 15*8460358cSPatrick Williams 16*8460358cSPatrick Williams# Handle distros such as CentOS 5 32-bit that do not have kvm support 17*8460358cSPatrick WilliamsPACKAGECONFIG:remove = "${@'kvm' if not os.path.exists('/usr/include/linux/kvm.h') else ''}" 18*8460358cSPatrick Williams 19*8460358cSPatrick Williamsdo_install:append() { 20*8460358cSPatrick Williams install -Dm 0755 ${UNPACKDIR}/powerpc_rom.bin ${D}${datadir}/qemu 21*8460358cSPatrick Williams 22*8460358cSPatrick Williams # The following is also installed by qemu-native 23*8460358cSPatrick Williams rm -f ${D}${datadir}/qemu/trace-events-all 24*8460358cSPatrick Williams rm -rf ${D}${datadir}/qemu/keymaps 25*8460358cSPatrick Williams rm -rf ${D}${datadir}/icons/ 26*8460358cSPatrick Williams rm -rf ${D}${includedir}/qemu-plugin.h 27*8460358cSPatrick Williams 28*8460358cSPatrick Williams # Install qmp.py to be used with testimage 29*8460358cSPatrick Williams install -d ${D}${libdir}/qemu-python/qmp/ 30*8460358cSPatrick Williams install -D ${S}/python/qemu/qmp/* ${D}${libdir}/qemu-python/qmp/ 31*8460358cSPatrick Williams} 32*8460358cSPatrick Williams 33