From: Ting Liu <[email protected]>

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 <[email protected]>
---
 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

-- 
_______________________________________________
meta-freescale mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-freescale

Reply via email to