[meta-freescale] [meta-fsl-ppc][PATCH 17/39] asf: remove empty install directories

b28495 at freescale.com b28495 at freescale.com
Wed Dec 23 07:26:18 PST 2015


From: Ting Liu <ting.liu at freescale.com>

If ASF was not enabled in kernel, no .ko will be generated.
rm these empty install directories to avoid QA issue.

Signed-off-by: Ting Liu <ting.liu at freescale.com>
---
 recipes-kernel/asf/asf_git.bb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/recipes-kernel/asf/asf_git.bb b/recipes-kernel/asf/asf_git.bb
index 05ffa88..6699d93 100644
--- a/recipes-kernel/asf/asf_git.bb
+++ b/recipes-kernel/asf/asf_git.bb
@@ -27,6 +27,7 @@ do_install(){
     cp -rf ${S}/bin/full ${D}/lib/modules/${KERNEL_VERSION}/asf 
     cp -rf ${S}/bin/min  ${D}/lib/modules/${KERNEL_VERSION}/asf
     cp -rf ${S}/../scripts ${D}/${libexecdir}/
+    find ${D}/lib -depth -type d -exec rmdir --ignore-fail-on-non-empty {} \;
 }
 
 FILES_${PN} += "${libexecdir}"
-- 
1.9.1



More information about the meta-freescale mailing list