]> code.ossystems Code Review - meta-freescale.git/commitdiff
qemu-qoriq: fix do_install_ptest_base issue
authorZhenhua Luo <zhenhua.luo@nxp.com>
Tue, 13 Sep 2016 02:56:18 +0000 (10:56 +0800)
committerOtavio Salvador <otavio@ossystems.com.br>
Tue, 13 Sep 2016 20:45:41 +0000 (17:45 -0300)
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@nxp.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
recipes-devtools/qemu/qemu-qoriq_git.bb

index d7651fbc44d30b7971e26fe318844017ca0adaef..5ae7d025ccd9994128862d1859632574d12eab81 100644 (file)
@@ -72,6 +72,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"