summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/qemu/qemu.inc
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2021-03-01 13:00:47 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-03-02 14:15:34 +0000
commit0dee49810490c6c3528de93658887099264bca9b (patch)
tree31c860e9da478cef90a2cfd990849961283c48e6 /meta/recipes-devtools/qemu/qemu.inc
parente3ef99a911ea52b05258678e41acdc925847990d (diff)
downloadpoky-0dee49810490c6c3528de93658887099264bca9b.tar.gz
qemu: Determinism fixes
Add a patch to address two determinism issues and allow reproducible builds. Also strip full paths we don't need out of some ptest files, we can use the installed binaries. (From OE-Core rev: 14e7cc6c6040b983024bec56fbd32d9101507ff0) 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.inc4
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/recipes-devtools/qemu/qemu.inc b/meta/recipes-devtools/qemu/qemu.inc
index cb854914b2..a6dc941624 100644
--- a/meta/recipes-devtools/qemu/qemu.inc
+++ b/meta/recipes-devtools/qemu/qemu.inc
@@ -28,6 +28,7 @@ SRC_URI = "https://download.qemu.org/${BPN}-${PV}.tar.xz \
28 file://mingwfix.patch \ 28 file://mingwfix.patch \
29 file://mmap.patch \ 29 file://mmap.patch \
30 file://mmap2.patch \ 30 file://mmap2.patch \
31 file://determinism.patch \
31 file://0001-tests-meson.build-use-relative-path-to-refer-to-file.patch \ 32 file://0001-tests-meson.build-use-relative-path-to-refer-to-file.patch \
32 " 33 "
33UPSTREAM_CHECK_REGEX = "qemu-(?P<pver>\d+(\.\d+)+)\.tar" 34UPSTREAM_CHECK_REGEX = "qemu-(?P<pver>\d+(\.\d+)+)\.tar"
@@ -57,6 +58,9 @@ do_install_ptest() {
57 sed -i -e 's,${HOSTTOOLS_DIR}/python3,${bindir}/python3,' \ 58 sed -i -e 's,${HOSTTOOLS_DIR}/python3,${bindir}/python3,' \
58 ${D}/${PTEST_PATH}/tests/qemu-iotests/common.env 59 ${D}/${PTEST_PATH}/tests/qemu-iotests/common.env
59 sed -i -e "1s,#!/usr/bin/bash,#!${base_bindir}/bash," ${D}${PTEST_PATH}/tests/data/acpi/disassemle-aml.sh 60 sed -i -e "1s,#!/usr/bin/bash,#!${base_bindir}/bash," ${D}${PTEST_PATH}/tests/data/acpi/disassemle-aml.sh
61
62 # Strip the paths from the QEMU variable, we can use PATH
63 sed -i -e "s#^QEMU=.*/qemu-#QEMU=qemu-#g" ${D}${PTEST_PATH}/tests/tcg/*.mak
60} 64}
61 65
62# QEMU_TARGETS is overridable variable 66# QEMU_TARGETS is overridable variable