[meta-freescale] [meta-fsl-arm][PATCH 30/41] asf: remove empty install directories

ting.liu at nxp.com ting.liu at nxp.com
Fri Jun 24 03:41:25 PDT 2016


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>
---
 openembedded-layer/recipes-kernel/asf/asf_git.bb | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/openembedded-layer/recipes-kernel/asf/asf_git.bb b/openembedded-layer/recipes-kernel/asf/asf_git.bb
index 5069d20..751a0e2 100644
--- a/openembedded-layer/recipes-kernel/asf/asf_git.bb
+++ b/openembedded-layer/recipes-kernel/asf/asf_git.bb
@@ -22,11 +22,12 @@ do_configure_prepend () {
 }
 
 do_install(){
-	mkdir -p ${D}/${libexecdir} 
-	mkdir -p ${D}/lib/modules/${KERNEL_VERSION}/asf
-	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}/
+    install -d ${D}/${libexecdir} 
+    install -d ${D}/lib/modules/${KERNEL_VERSION}/asf
+    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.2



More information about the meta-freescale mailing list