diff options
Diffstat (limited to 'meta-xilinx-core/recipes-devtools/qemu/qemu-xilinx-system-native_2023.2.bb')
-rw-r--r-- | meta-xilinx-core/recipes-devtools/qemu/qemu-xilinx-system-native_2023.2.bb | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/meta-xilinx-core/recipes-devtools/qemu/qemu-xilinx-system-native_2023.2.bb b/meta-xilinx-core/recipes-devtools/qemu/qemu-xilinx-system-native_2023.2.bb new file mode 100644 index 00000000..fdf3be2e --- /dev/null +++ b/meta-xilinx-core/recipes-devtools/qemu/qemu-xilinx-system-native_2023.2.bb @@ -0,0 +1,38 @@ +require qemu-system-native-alt.inc +require qemu-xilinx-2023.2.inc +require qemu-xilinx-native-7.1.inc + +PROVIDES = "qemu-system-native" + +# Latest poky has changed the defaults, restore them to something compatible +# with this QEMU. When we update to QEMU 8.x this won't be necessary. +EXTRA_OECONF:remove = "--disable-download" +EXTRA_OECONF:remove = "--disable-docs" +EXTRA_OECONF:remove = "--disable-af-xdp" + +EXTRA_OECONF:append = "\ + --with-git=/bin/false \ + --with-git-submodules=ignore \ + --meson=meson \ +" + +EXTRA_OECONF:append = " --target-list=${@get_qemu_system_target_list(d)}" + +PACKAGECONFIG ??= "fdt alsa kvm gcrypt pie slirp" + +PACKAGECONFIG:remove = "${@'kvm' if not os.path.exists('/usr/include/linux/kvm.h') else ''}" + +DEPENDS += "pixman-native qemu-xilinx-native bison-native ninja-native meson-native" +DEPENDS += "qemu-xilinx-multiarch-helper-native" + +do_install:append() { + # The following is also installed by qemu-native + rm -f ${D}${datadir}/qemu/trace-events-all + rm -rf ${D}${datadir}/qemu/keymaps + rm -rf ${D}${datadir}/icons + rm -rf ${D}${includedir}/qemu-plugin.h + + # Install qmp.py to be used with testimage + install -d ${D}${libdir}/qemu-python/qmp/ + install -D ${S}/python/qemu/qmp/* ${D}${libdir}/qemu-python/qmp/ +} |