diff options
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 |