[meta-freescale] [meta-fsl-ppc][patch] qemu-qoriq: fix do_install_ptest_base issue

Zhenhua Luo zhenhua.luo at nxp.com
Sun Sep 18 01:25:56 PDT 2016


Fix the following build error:
| DEBUG: Executing shell function do_install_ptest_base
| cp: cannot stat '.../qemu-qoriq/git-r1/git/tests/Makefile.include': No such file or directory
| WARNING: exit code 1 from a shell command.

Signed-off-by: Zhenhua Luo <zhenhua.luo at nxp.com>
---
 recipes-devtools/qemu/qemu-qoriq_git.bb | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/recipes-devtools/qemu/qemu-qoriq_git.bb b/recipes-devtools/qemu/qemu-qoriq_git.bb
index c70ed14..30daf5f 100644
--- a/recipes-devtools/qemu/qemu-qoriq_git.bb
+++ b/recipes-devtools/qemu/qemu-qoriq_git.bb
@@ -63,6 +63,13 @@ do_install_append() {
     if [ -d ${D}${localstatedir}/run ]; then rmdir ${D}${localstatedir}/run; fi
 }
 
+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 ${D}${PTEST_PATH}/tests
+}
+
 FILES_${PN} += "${datadir}/qemu/"
 INSANE_SKIP_${PN} += "dev-deps"
 
-- 
2.7.4



More information about the meta-freescale mailing list