Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 1 | BPN = "qemu" |
| 2 | |
| 3 | require qemu-native.inc |
| 4 | |
Brad Bishop | c68388fc | 2019-08-26 01:33:31 -0400 | [diff] [blame] | 5 | # As some of the files installed by qemu-native and qemu-system-native |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 6 | # are the same, we depend on qemu-native to get the full installation set |
| 7 | # and avoid file clashes |
Brad Bishop | 15ae250 | 2019-06-18 21:44:24 -0400 | [diff] [blame] | 8 | DEPENDS = "glib-2.0-native zlib-native pixman-native qemu-native bison-native" |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 9 | |
| 10 | EXTRA_OECONF_append = " --target-list=${@get_qemu_system_target_list(d)}" |
| 11 | |
Andrew Geissler | 1e34c2d | 2020-05-29 16:02:59 -0500 | [diff] [blame] | 12 | PACKAGECONFIG ??= "fdt alsa kvm \ |
| 13 | ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'virglrenderer glx', '' ,d)} \ |
| 14 | " |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 15 | |
| 16 | # Handle distros such as CentOS 5 32-bit that do not have kvm support |
| 17 | PACKAGECONFIG_remove = "${@'kvm' if not os.path.exists('/usr/include/linux/kvm.h') else ''}" |
| 18 | |
| 19 | do_install_append() { |
| 20 | install -Dm 0755 ${WORKDIR}/powerpc_rom.bin ${D}${datadir}/qemu |
| 21 | |
| 22 | # The following is also installed by qemu-native |
| 23 | rm -f ${D}${datadir}/qemu/trace-events-all |
| 24 | rm -rf ${D}${datadir}/qemu/keymaps |
| 25 | rm -rf ${D}${datadir}/icons/ |
| 26 | } |