summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/qemu/qemu.inc
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2024-01-23 21:27:08 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-01-24 15:46:19 +0000
commit7f9dd77eaeaf586c88ee1b5f4f5ee0439612b964 (patch)
treeb9ee9eb35858f85023ed4da0685f6fd2f71883a3 /meta/recipes-devtools/qemu/qemu.inc
parent754d0c606ec3019d36ef92dffae79f81cc2bc1b6 (diff)
downloadpoky-7f9dd77eaeaf586c88ee1b5f4f5ee0439612b964.tar.gz
qemu: Upgrade 8.1.2 -> 8.2.0
We can drop the mips workaround patch since there were fixes in 8.2.0. The build system changed and we should drop cross.patch and replace it with explicit settings for cross-prefix, and host-cc. To make that work we need to indicate we don't use a cross pkg-config. PIE isn't availale for mingw so tweak PACKAGECONFIG accordingly. (From OE-Core rev: 8917fa10b8afb1413b34a6134beea129e416f8c6) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/qemu/qemu.inc')
-rw-r--r--meta/recipes-devtools/qemu/qemu.inc13
1 files changed, 7 insertions, 6 deletions
diff --git a/meta/recipes-devtools/qemu/qemu.inc b/meta/recipes-devtools/qemu/qemu.inc
index 4ebf17e6c0..ccb2880402 100644
--- a/meta/recipes-devtools/qemu/qemu.inc
+++ b/meta/recipes-devtools/qemu/qemu.inc
@@ -32,7 +32,6 @@ SRC_URI = "https://download.qemu.org/${BPN}-${PV}.tar.xz \
32 file://0010-hw-pvrdma-Protect-against-buggy-or-malicious-guest-d.patch \ 32 file://0010-hw-pvrdma-Protect-against-buggy-or-malicious-guest-d.patch \
33 file://0002-linux-user-Replace-use-of-lfs64-related-functions-an.patch \ 33 file://0002-linux-user-Replace-use-of-lfs64-related-functions-an.patch \
34 file://fixedmeson.patch \ 34 file://fixedmeson.patch \
35 file://fixmips.patch \
36 file://0001-vfio-Include-libgen.h-for-basename-API.patch \ 35 file://0001-vfio-Include-libgen.h-for-basename-API.patch \
37 file://no-pip.patch \ 36 file://no-pip.patch \
38 file://qemu-guest-agent.init \ 37 file://qemu-guest-agent.init \
@@ -41,10 +40,7 @@ SRC_URI = "https://download.qemu.org/${BPN}-${PV}.tar.xz \
41UPSTREAM_CHECK_REGEX = "qemu-(?P<pver>\d+(\.\d+)+)\.tar" 40UPSTREAM_CHECK_REGEX = "qemu-(?P<pver>\d+(\.\d+)+)\.tar"
42 41
43 42
44SRC_URI[sha256sum] = "541526a764576eb494d2ff5ec46aeb253e62ea29035d1c23c0a8af4e6cd4f087" 43SRC_URI[sha256sum] = "bf00d2fa12010df8b0ade93371def58e632cb32a6bfdc5f5a0ff8e6a1fb1bf32"
45
46SRC_URI:append:class-target = " file://cross.patch"
47SRC_URI:append:class-nativesdk = " file://cross.patch"
48 44
49CVE_STATUS[CVE-2017-5957] = "cpe-incorrect: Applies against virglrender < 0.6.0 and not qemu itself" 45CVE_STATUS[CVE-2017-5957] = "cpe-incorrect: Applies against virglrender < 0.6.0 and not qemu itself"
50 46
@@ -117,9 +113,13 @@ EXTRA_OECONF = " \
117 --extra-ldflags='${LDFLAGS}' \ 113 --extra-ldflags='${LDFLAGS}' \
118 --disable-download \ 114 --disable-download \
119 --disable-docs \ 115 --disable-docs \
116 --host-cc=${BUILD_CC} \
120 ${PACKAGECONFIG_CONFARGS} \ 117 ${PACKAGECONFIG_CONFARGS} \
121 " 118 "
122 119
120EXTRA_OECONF:append:class-target = " --cross-prefix=${HOST_PREFIX}"
121EXTRA_OECONF:append:class-nativesdk = " --cross-prefix=${HOST_PREFIX}"
122
123B = "${WORKDIR}/build" 123B = "${WORKDIR}/build"
124 124
125#EXTRA_OECONF:append = " --python=${HOSTTOOLS_DIR}/python3" 125#EXTRA_OECONF:append = " --python=${HOSTTOOLS_DIR}/python3"
@@ -133,6 +133,7 @@ do_configure:prepend:class-native() {
133} 133}
134 134
135do_configure() { 135do_configure() {
136 export PKG_CONFIG=pkg-config
136 ${S}/configure ${EXTRA_OECONF} 137 ${S}/configure ${EXTRA_OECONF}
137} 138}
138do_configure[cleandirs] += "${B}" 139do_configure[cleandirs] += "${B}"
@@ -176,7 +177,7 @@ do_install:append() {
176 177
177# Disable kvm/virgl/mesa on targets that do not support it 178# Disable kvm/virgl/mesa on targets that do not support it
178PACKAGECONFIG:remove:darwin = "kvm virglrenderer epoxy gtk+" 179PACKAGECONFIG:remove:darwin = "kvm virglrenderer epoxy gtk+"
179PACKAGECONFIG:remove:mingw32 = "kvm virglrenderer epoxy gtk+" 180PACKAGECONFIG:remove:mingw32 = "kvm virglrenderer epoxy gtk+ pie"
180 181
181PACKAGECONFIG[sdl] = "--enable-sdl,--disable-sdl,libsdl2" 182PACKAGECONFIG[sdl] = "--enable-sdl,--disable-sdl,libsdl2"
182PACKAGECONFIG[png] = "--enable-png,--disable-png,libpng" 183PACKAGECONFIG[png] = "--enable-png,--disable-png,libpng"