diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-08-24 16:41:20 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-09-07 07:53:50 +0100 |
commit | f694084dbc48b49c9d9ebdc0f5b6d13b29176708 (patch) | |
tree | 01538313c45d9ba92a0c7c524e410e3601ba8e0c /meta/recipes-devtools/qemu/qemu.inc | |
parent | dd2e4f417cce355185b33c7fe61a02c7f488c428 (diff) | |
download | poky-f694084dbc48b49c9d9ebdc0f5b6d13b29176708.tar.gz |
qemu: Upgrade 8.0.4 -> 8.1.0
This upgrade isn't straighforward as upstream made changes. A pyenv
is now needed containing meson. This doesn't work for us for reasons
as yet unclear however it does mean we need python3native inherited
for that to stand a chance of working as otherwise host system
dependencies may be missing. For now, allow meson to work from our
sysroot via a patch. Our meson is always deterministic anyway so
we don't need their help for that.
The submodules approach used previously has changed, switch the options
for new ones to disable downloads and docs.
Some of the images binaries shipped for s390 show QA warnings for
relocations in code sections. Drop those binaries to avoid the QA
warnings since we don't need them anyway.
Drop a backported patch and refresh another.
(From OE-Core rev: a7176c3b2a7e2041b9be5dabb6b0f1e62f235f76)
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.inc | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/meta/recipes-devtools/qemu/qemu.inc b/meta/recipes-devtools/qemu/qemu.inc index b98169c243..131162dd62 100644 --- a/meta/recipes-devtools/qemu/qemu.inc +++ b/meta/recipes-devtools/qemu/qemu.inc | |||
@@ -9,7 +9,9 @@ LICENSE = "GPL-2.0-only & LGPL-2.1-only" | |||
9 | RDEPENDS:${PN}-ptest = "bash" | 9 | RDEPENDS:${PN}-ptest = "bash" |
10 | 10 | ||
11 | require qemu-targets.inc | 11 | require qemu-targets.inc |
12 | inherit pkgconfig ptest update-rc.d systemd | 12 | # https://gitlab.com/qemu-project/qemu/-/commit/81e2b198a8cb4ee5fdf108bd438f44b193ee3a36 means |
13 | # we need a full python3-native setup | ||
14 | inherit pkgconfig ptest update-rc.d systemd python3native | ||
13 | 15 | ||
14 | LIC_FILES_CHKSUM = "file://COPYING;md5=441c28d2cf86e15a37fa47e15a72fbac \ | 16 | LIC_FILES_CHKSUM = "file://COPYING;md5=441c28d2cf86e15a37fa47e15a72fbac \ |
15 | file://COPYING.LIB;endline=24;md5=8c5efda6cf1e1b03dcfd0e6c0d271c7f" | 17 | file://COPYING.LIB;endline=24;md5=8c5efda6cf1e1b03dcfd0e6c0d271c7f" |
@@ -27,14 +29,13 @@ SRC_URI = "https://download.qemu.org/${BPN}-${PV}.tar.xz \ | |||
27 | file://0009-Define-MAP_SYNC-and-MAP_SHARED_VALIDATE-on-needed-li.patch \ | 29 | file://0009-Define-MAP_SYNC-and-MAP_SHARED_VALIDATE-on-needed-li.patch \ |
28 | file://0010-hw-pvrdma-Protect-against-buggy-or-malicious-guest-d.patch \ | 30 | file://0010-hw-pvrdma-Protect-against-buggy-or-malicious-guest-d.patch \ |
29 | file://0002-linux-user-Replace-use-of-lfs64-related-functions-an.patch \ | 31 | file://0002-linux-user-Replace-use-of-lfs64-related-functions-an.patch \ |
30 | file://0001-tracetool-use-relative-paths-for-line-preprocessor-d.patch \ | 32 | file://fixedmeson.patch \ |
31 | file://0001-CVE-2023-40360-hw-nvme-fix-null-pointer-access-in-di.patch \ | ||
32 | file://qemu-guest-agent.init \ | 33 | file://qemu-guest-agent.init \ |
33 | file://qemu-guest-agent.udev \ | 34 | file://qemu-guest-agent.udev \ |
34 | " | 35 | " |
35 | UPSTREAM_CHECK_REGEX = "qemu-(?P<pver>\d+(\.\d+)+)\.tar" | 36 | UPSTREAM_CHECK_REGEX = "qemu-(?P<pver>\d+(\.\d+)+)\.tar" |
36 | 37 | ||
37 | SRC_URI[sha256sum] = "81c817dda38af958be5bef1a6cf55b658bb2d3fb87c1e6a571de6b7b2c44516c" | 38 | SRC_URI[sha256sum] = "710c101198e334d4762eef65f649bc43fa8a5dd75303554b8acfec3eb25f0e55" |
38 | 39 | ||
39 | SRC_URI:append:class-target = " file://cross.patch" | 40 | SRC_URI:append:class-target = " file://cross.patch" |
40 | SRC_URI:append:class-nativesdk = " file://cross.patch" | 41 | SRC_URI:append:class-nativesdk = " file://cross.patch" |
@@ -105,9 +106,8 @@ EXTRA_OECONF = " \ | |||
105 | --disable-werror \ | 106 | --disable-werror \ |
106 | --extra-cflags='${CFLAGS}' \ | 107 | --extra-cflags='${CFLAGS}' \ |
107 | --extra-ldflags='${LDFLAGS}' \ | 108 | --extra-ldflags='${LDFLAGS}' \ |
108 | --with-git=/bin/false \ | 109 | --disable-download \ |
109 | --with-git-submodules=ignore \ | 110 | --disable-docs \ |
110 | --meson=meson \ | ||
111 | ${PACKAGECONFIG_CONFARGS} \ | 111 | ${PACKAGECONFIG_CONFARGS} \ |
112 | " | 112 | " |
113 | 113 | ||
@@ -145,6 +145,10 @@ do_install () { | |||
145 | install -m 0644 ${S}/contrib/systemd/qemu-guest-agent.service ${D}${systemd_unitdir}/system | 145 | install -m 0644 ${S}/contrib/systemd/qemu-guest-agent.service ${D}${systemd_unitdir}/system |
146 | sed -i -e 's,-/usr/bin/,-${bindir}/,g' ${D}${systemd_unitdir}/system/qemu-guest-agent.service | 146 | sed -i -e 's,-/usr/bin/,-${bindir}/,g' ${D}${systemd_unitdir}/system/qemu-guest-agent.service |
147 | fi | 147 | fi |
148 | # ELF binary /usr/share/qemu/s390-netboot.img has relocations in .text | ||
149 | rm ${D}${datadir}/qemu/s390-netboot.img -f | ||
150 | # ELF binary /usr/share/qemu/s390-ccw.img has relocations in .text [textrel] | ||
151 | rm ${D}${datadir}/qemu/s390-ccw.img -f | ||
148 | } | 152 | } |
149 | 153 | ||
150 | # The following fragment will create a wrapper for qemu-mips user emulation | 154 | # The following fragment will create a wrapper for qemu-mips user emulation |