diff options
| author | Mark Hatle <mark.hatle@amd.com> | 2024-01-18 12:36:25 -0700 |
|---|---|---|
| committer | Mark Hatle <mark.hatle@amd.com> | 2024-01-22 16:31:41 -0700 |
| commit | 3d6752472f5abf6060b5c9db37559b2c5be8977d (patch) | |
| tree | 0f5fa549e22b9bb3905b0aa3523819f3d3779768 | |
| parent | 7c40a1fd85141558035126db01439a25884be021 (diff) | |
| download | meta-xilinx-3d6752472f5abf6060b5c9db37559b2c5be8977d.tar.gz | |
qemu: Add target qemu 8.1.2
Backport the QEMU 8.1.x integration from current poky
(commit 4bb222e0d71a4cb159b8a4f1a90b65b1af32ac10).
Split the additional xen/tpm patches by version, disable Xen patches on
the 8.1.2 version, not yet supported.
Signed-off-by: Mark Hatle <mark.hatle@amd.com>
| -rw-r--r-- | meta-xilinx-core/conf/layer.conf | 1 | ||||
| -rw-r--r-- | meta-xilinx-core/recipes-devtools/qemu/qemu_8.1.2.bb | 29 | ||||
| -rw-r--r-- | meta-xilinx-virtualization/recipes-devtools/qemu/qemu_7.1%.bbappend (renamed from meta-xilinx-virtualization/recipes-devtools/qemu/qemu_%.bbappend) | 0 | ||||
| -rw-r--r-- | meta-xilinx-virtualization/recipes-devtools/qemu/qemu_8.1%.bbappend | 5 |
4 files changed, 35 insertions, 0 deletions
diff --git a/meta-xilinx-core/conf/layer.conf b/meta-xilinx-core/conf/layer.conf index 752eeb37..5f2693cb 100644 --- a/meta-xilinx-core/conf/layer.conf +++ b/meta-xilinx-core/conf/layer.conf | |||
| @@ -49,6 +49,7 @@ BUILDCFG_VARS:append = " SOC_VARIANT XILINX_RELEASE_VERSION" | |||
| 49 | XILINX_QEMU_VERSION[v2023.1] = "v7.1.0-xilinx-v2023.1%" | 49 | XILINX_QEMU_VERSION[v2023.1] = "v7.1.0-xilinx-v2023.1%" |
| 50 | XILINX_QEMU_VERSION[v2023.2] = "v7.1.0-xilinx-v2023.2%" | 50 | XILINX_QEMU_VERSION[v2023.2] = "v7.1.0-xilinx-v2023.2%" |
| 51 | XILINX_QEMU_VERSION[v2024.1] = "v8.1.0-xilinx-v2024.1%" | 51 | XILINX_QEMU_VERSION[v2024.1] = "v8.1.0-xilinx-v2024.1%" |
| 52 | PREFERRED_VERSION_qemu ?= "${@ '7.1%' if not (d.getVar('XILINX_RELEASE_VERSION') or 'undefined').startswith('v2024') else '8.1%'}" | ||
| 52 | PREFERRED_VERSION_qemu-xilinx ?= "${@d.getVarFlag('XILINX_QEMU_VERSION', d.getVar('XILINX_RELEASE_VERSION')) or 'undefined'}" | 53 | PREFERRED_VERSION_qemu-xilinx ?= "${@d.getVarFlag('XILINX_QEMU_VERSION', d.getVar('XILINX_RELEASE_VERSION')) or 'undefined'}" |
| 53 | PREFERRED_VERSION_qemu-xilinx-native ?= "${@d.getVarFlag('XILINX_QEMU_VERSION', d.getVar('XILINX_RELEASE_VERSION')) or 'undefined'}" | 54 | PREFERRED_VERSION_qemu-xilinx-native ?= "${@d.getVarFlag('XILINX_QEMU_VERSION', d.getVar('XILINX_RELEASE_VERSION')) or 'undefined'}" |
| 54 | PREFERRED_VERSION_qemu-xilinx-system-native ?= "${@d.getVarFlag('XILINX_QEMU_VERSION', d.getVar('XILINX_RELEASE_VERSION')) or 'undefined'}" | 55 | PREFERRED_VERSION_qemu-xilinx-system-native ?= "${@d.getVarFlag('XILINX_QEMU_VERSION', d.getVar('XILINX_RELEASE_VERSION')) or 'undefined'}" |
diff --git a/meta-xilinx-core/recipes-devtools/qemu/qemu_8.1.2.bb b/meta-xilinx-core/recipes-devtools/qemu/qemu_8.1.2.bb new file mode 100644 index 00000000..2f9305e1 --- /dev/null +++ b/meta-xilinx-core/recipes-devtools/qemu/qemu_8.1.2.bb | |||
| @@ -0,0 +1,29 @@ | |||
| 1 | BBCLASSEXTEND = "nativesdk" | ||
| 2 | |||
| 3 | FILESEXTRAPATHS:append := ":${THISDIR}/qemu-8.1" | ||
| 4 | |||
| 5 | require qemu-8.1.inc | ||
| 6 | |||
| 7 | DEPENDS = "glib-2.0 zlib pixman bison-native ninja-native meson-native" | ||
| 8 | |||
| 9 | DEPENDS:append:libc-musl = " libucontext" | ||
| 10 | |||
| 11 | CFLAGS += "${@bb.utils.contains('DISTRO_FEATURES', 'x11', '', '-DEGL_NO_X11=1', d)}" | ||
| 12 | |||
| 13 | RDEPENDS:${PN}-common:class-target += "bash" | ||
| 14 | |||
| 15 | EXTRA_OECONF:append:class-target = " --target-list=${@get_qemu_target_list(d)}" | ||
| 16 | EXTRA_OECONF:append:class-target:mipsarcho32 = "${@bb.utils.contains('BBEXTENDCURR', 'multilib', ' --disable-capstone', '', d)}" | ||
| 17 | EXTRA_OECONF:append:class-nativesdk = " --target-list=${@get_qemu_target_list(d)}" | ||
| 18 | |||
| 19 | PACKAGECONFIG ??= " \ | ||
| 20 | fdt sdl kvm pie slirp \ | ||
| 21 | ${@bb.utils.filter('DISTRO_FEATURES', 'alsa pulseaudio xen', d)} \ | ||
| 22 | ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'virglrenderer epoxy', '', d)} \ | ||
| 23 | ${@bb.utils.filter('DISTRO_FEATURES', 'seccomp', d)} \ | ||
| 24 | " | ||
| 25 | PACKAGECONFIG:class-nativesdk ??= "fdt sdl kvm pie slirp \ | ||
| 26 | ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'virglrenderer epoxy', '', d)} \ | ||
| 27 | " | ||
| 28 | # ppc32 hosts are no longer supported in qemu | ||
| 29 | COMPATIBLE_HOST:powerpc = "null" | ||
diff --git a/meta-xilinx-virtualization/recipes-devtools/qemu/qemu_%.bbappend b/meta-xilinx-virtualization/recipes-devtools/qemu/qemu_7.1%.bbappend index 3e93710c..3e93710c 100644 --- a/meta-xilinx-virtualization/recipes-devtools/qemu/qemu_%.bbappend +++ b/meta-xilinx-virtualization/recipes-devtools/qemu/qemu_7.1%.bbappend | |||
diff --git a/meta-xilinx-virtualization/recipes-devtools/qemu/qemu_8.1%.bbappend b/meta-xilinx-virtualization/recipes-devtools/qemu/qemu_8.1%.bbappend new file mode 100644 index 00000000..b1e94b5a --- /dev/null +++ b/meta-xilinx-virtualization/recipes-devtools/qemu/qemu_8.1%.bbappend | |||
| @@ -0,0 +1,5 @@ | |||
| 1 | require qemu-tpm.inc | ||
| 2 | #require qemu-xen.inc | ||
| 3 | |||
| 4 | # We do not want QEMU, on the target to be configured with OpenGL | ||
| 5 | PACKAGECONFIG:remove:class-target:petalinux = "virglrenderer epoxy gtk+" | ||
