From: Ting Liu Date: Tue, 15 Dec 2020 04:25:55 +0000 (+0530) Subject: qemu-qoriq: overide do_install_ptest X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=8da53a53f4642467e758491be9dba3110887e04b;p=meta-freescale.git 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 --- 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)} \