]> code.ossystems Code Review - meta-freescale.git/commitdiff
qemu-qoriq: overide do_install_ptest
authorTing Liu <ting.liu@nxp.com>
Tue, 15 Dec 2020 04:25:55 +0000 (09:55 +0530)
committerOtavio Salvador <otavio@ossystems.com.br>
Wed, 16 Dec 2020 11:38:13 +0000 (08:38 -0300)
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>
recipes-devtools/qemu/qemu-qoriq_4.1.0.bb

index 0c82273535e9cb9c7c2ce3ce9cc0fc1dbc9d97b0..0f91658e8c52e476b552028a07c6f95df4a80af9 100644 (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)} \