From b25af25747ca319d7932806ebdb33c7d220afa71 Mon Sep 17 00:00:00 2001 From: Kai Kang Date: Thu, 22 Sep 2016 15:42:50 +0800 Subject: libvirt: remove .o files for ptest When do split_and_strip_files, it may calls debugedit to deal elf files. For ptest sub-package, it fails to run debugedit with .o files. So remove the .o files which are redundant to run ptest cases. Signed-off-by: Kai Kang Signed-off-by: Bruce Ashfield --- recipes-extended/libvirt/libvirt_1.3.5.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes-extended/libvirt/libvirt_1.3.5.bb b/recipes-extended/libvirt/libvirt_1.3.5.bb index 3eff58d2..fad56323 100644 --- a/recipes-extended/libvirt/libvirt_1.3.5.bb +++ b/recipes-extended/libvirt/libvirt_1.3.5.bb @@ -275,7 +275,7 @@ do_install_ptest() { find ${S}/tests -maxdepth 1 -type d -exec cp -r {} ${D}${PTEST_PATH}/tests/ \; # remove .la files for ptest, they aren't required and can trigger QA errors - for i in `find ${D}${PTEST_PATH} -type f -name *.la`; do + for i in `find ${D}${PTEST_PATH} -type f \( -name *.la -o -name *.o \)`; do rm -f $i done } -- cgit v1.2.3-54-g00ecf