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