From 175e4b86424428c5e38bde272f4678cd3c56ca46 Mon Sep 17 00:00:00 2001 From: Ting Liu Date: Sat, 9 Jan 2016 14:43:45 +0800 Subject: [PATCH] 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 --- 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 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}" -- 2.40.1