]> code.ossystems Code Review - meta-freescale.git/commitdiff
asf: remove empty install directories
authorTing Liu <ting.liu@nxp.com>
Sat, 9 Jan 2016 06:43:45 +0000 (14:43 +0800)
committerOtavio Salvador <otavio@ossystems.com.br>
Tue, 19 Apr 2016 18:03:24 +0000 (15:03 -0300)
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@nxp.com>
Signed-off-by: Zhenhua Luo <zhenhua.luo@nxp.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
recipes-kernel/asf/asf_git.bb

index 7f355ebd3d625ad5e1e9da78c717eee3171e8cf6..8cfc018c608519fc00f95d89e5b6c56b7326f322 100644 (file)
@@ -29,6 +29,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}"