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 <ting.liu@nxp.com>
This commit is contained in:
Ting Liu 2020-12-15 09:55:55 +05:30 committed by Otavio Salvador
parent 05c19a765a
commit 8da53a53f4

View File

@ -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)} \