From 8da53a53f4642467e758491be9dba3110887e04b Mon Sep 17 00:00:00 2001 From: Ting Liu Date: Tue, 15 Dec 2020 09:55:55 +0530 Subject: qemu-qoriq: overide do_install_ptest qemu-qoriq reuses poky's qemu.inc which has upgraded to 5.1. qemu-qoriq is based on 4.1 in which tests/data/acpi/disassemle-aml.sh does not exist. This leads to do_install_ptest fail. Override do_install_ptest in qemu-qoriq recipe. Signed-off-by: Ting Liu --- recipes-devtools/qemu/qemu-qoriq_4.1.0.bb | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'recipes-devtools') diff --git a/recipes-devtools/qemu/qemu-qoriq_4.1.0.bb b/recipes-devtools/qemu/qemu-qoriq_4.1.0.bb index 0c822735..0f91658e 100644 --- a/recipes-devtools/qemu/qemu-qoriq_4.1.0.bb +++ b/recipes-devtools/qemu/qemu-qoriq_4.1.0.bb @@ -40,6 +40,18 @@ do_install_append_class-nativesdk() { ${@bb.utils.contains('PACKAGECONFIG', 'gtk+', 'make_qemu_wrapper', '', d)} } +do_install_ptest() { + cp -rL ${B}/tests ${D}${PTEST_PATH} + find ${D}${PTEST_PATH}/tests -type f -name "*.[Sshcod]" | xargs -i rm -rf {} + + cp ${S}/tests/Makefile.include ${D}${PTEST_PATH}/tests + # Don't check the file genreated by configure + sed -i -e '/wildcard config-host.mak/d' \ + -e '$ {/endif/d}' ${D}${PTEST_PATH}/tests/Makefile.include + sed -i -e 's,${HOSTTOOLS_DIR}/python3,${bindir}/python3,' \ + ${D}/${PTEST_PATH}/tests/qemu-iotests/common.env +} + PACKAGECONFIG ??= " \ fdt sdl kvm aio libusb \ ${@bb.utils.filter('DISTRO_FEATURES', 'alsa xen', d)} \ -- cgit v1.2.3-54-g00ecf