From: Ting Liu Date: Sat, 9 Jan 2016 06:43:45 +0000 (+0800) Subject: asf: remove empty install directories X-Git-Tag: 2.1~116 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=175e4b86424428c5e38bde272f4678cd3c56ca46;p=meta-freescale.git asf: remove empty install directories 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 Signed-off-by: Zhenhua Luo Signed-off-by: Otavio Salvador --- diff --git a/recipes-kernel/asf/asf_git.bb b/recipes-kernel/asf/asf_git.bb index 7f355ebd..8cfc018c 100644 --- a/recipes-kernel/asf/asf_git.bb +++ b/recipes-kernel/asf/asf_git.bb @@ -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}"