summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/qemu/qemu.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/qemu/qemu.inc')
-rw-r--r--meta/recipes-devtools/qemu/qemu.inc12
1 files changed, 2 insertions, 10 deletions
diff --git a/meta/recipes-devtools/qemu/qemu.inc b/meta/recipes-devtools/qemu/qemu.inc
index c894b81b10..cb854914b2 100644
--- a/meta/recipes-devtools/qemu/qemu.inc
+++ b/meta/recipes-devtools/qemu/qemu.inc
@@ -6,7 +6,7 @@ a variety of guest operating systems"
6HOMEPAGE = "http://qemu.org" 6HOMEPAGE = "http://qemu.org"
7LICENSE = "GPLv2 & LGPLv2.1" 7LICENSE = "GPLv2 & LGPLv2.1"
8 8
9RDEPENDS_${PN}-ptest = "bash make" 9RDEPENDS_${PN}-ptest = "bash"
10 10
11require qemu-targets.inc 11require qemu-targets.inc
12inherit pkgconfig ptest 12inherit pkgconfig ptest
@@ -18,7 +18,6 @@ SRC_URI = "https://download.qemu.org/${BPN}-${PV}.tar.xz \
18 file://powerpc_rom.bin \ 18 file://powerpc_rom.bin \
19 file://run-ptest \ 19 file://run-ptest \
20 file://0001-qemu-Add-missing-wacom-HID-descriptor.patch \ 20 file://0001-qemu-Add-missing-wacom-HID-descriptor.patch \
21 file://0002-Add-subpackage-ptest-which-runs-all-unit-test-cases-.patch \
22 file://0003-qemu-Add-addition-environment-space-to-boot-loader-q.patch \ 21 file://0003-qemu-Add-addition-environment-space-to-boot-loader-q.patch \
23 file://0004-qemu-disable-Valgrind.patch \ 22 file://0004-qemu-disable-Valgrind.patch \
24 file://0006-chardev-connect-socket-to-a-spawned-command.patch \ 23 file://0006-chardev-connect-socket-to-a-spawned-command.patch \
@@ -50,18 +49,11 @@ do_install_append() {
50 if [ -d ${D}${localstatedir}/run ]; then rmdir ${D}${localstatedir}/run; fi 49 if [ -d ${D}${localstatedir}/run ]; then rmdir ${D}${localstatedir}/run; fi
51} 50}
52 51
53do_compile_ptest() {
54 make buildtest-TESTS
55}
56
57do_install_ptest() { 52do_install_ptest() {
58 cp -rL ${B}/tests ${D}${PTEST_PATH} 53 cp -rL ${B}/tests ${D}${PTEST_PATH}
59 find ${D}${PTEST_PATH}/tests -type f -name "*.[Sshcod]" | xargs -i rm -rf {} 54 find ${D}${PTEST_PATH}/tests -type f -name "*.[Sshcodp]" | xargs -i rm -rf {}
60 55
61 cp ${S}/tests/Makefile.include ${D}${PTEST_PATH}/tests
62 # Don't check the file genreated by configure 56 # Don't check the file genreated by configure
63 sed -i -e '/wildcard config-host.mak/d' \
64 -e '$ {/endif/d}' ${D}${PTEST_PATH}/tests/Makefile.include
65 sed -i -e 's,${HOSTTOOLS_DIR}/python3,${bindir}/python3,' \ 57 sed -i -e 's,${HOSTTOOLS_DIR}/python3,${bindir}/python3,' \
66 ${D}/${PTEST_PATH}/tests/qemu-iotests/common.env 58 ${D}/${PTEST_PATH}/tests/qemu-iotests/common.env
67 sed -i -e "1s,#!/usr/bin/bash,#!${base_bindir}/bash," ${D}${PTEST_PATH}/tests/data/acpi/disassemle-aml.sh 59 sed -i -e "1s,#!/usr/bin/bash,#!${base_bindir}/bash," ${D}${PTEST_PATH}/tests/data/acpi/disassemle-aml.sh