summaryrefslogtreecommitdiffstats
path: root/meta/classes-recipe/kernel.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes-recipe/kernel.bbclass')
-rw-r--r--meta/classes-recipe/kernel.bbclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes-recipe/kernel.bbclass b/meta/classes-recipe/kernel.bbclass
index 3f6b40907f..553e17bb4e 100644
--- a/meta/classes-recipe/kernel.bbclass
+++ b/meta/classes-recipe/kernel.bbclass
@@ -450,8 +450,8 @@ kernel_do_install() {
450 oe_runmake DEPMOD=echo MODLIB=${D}${nonarch_base_libdir}/modules/${KERNEL_VERSION} INSTALL_FW_PATH=${D}${nonarch_base_libdir}/firmware modules_install 450 oe_runmake DEPMOD=echo MODLIB=${D}${nonarch_base_libdir}/modules/${KERNEL_VERSION} INSTALL_FW_PATH=${D}${nonarch_base_libdir}/firmware modules_install
451 rm "${D}${nonarch_base_libdir}/modules/${KERNEL_VERSION}/build" 451 rm "${D}${nonarch_base_libdir}/modules/${KERNEL_VERSION}/build"
452 rm "${D}${nonarch_base_libdir}/modules/${KERNEL_VERSION}/source" 452 rm "${D}${nonarch_base_libdir}/modules/${KERNEL_VERSION}/source"
453 # If the kernel/ directory is empty remove it to prevent QA issues 453 # Remove empty module directories to prevent QA issues
454 rmdir --ignore-fail-on-non-empty "${D}${nonarch_base_libdir}/modules/${KERNEL_VERSION}/kernel" 454 find "${D}${nonarch_base_libdir}/modules/${KERNEL_VERSION}/kernel" -type d -empty -delete
455 else 455 else
456 bbnote "no modules to install" 456 bbnote "no modules to install"
457 fi 457 fi