diff options
Diffstat (limited to 'meta/classes/kernel.bbclass')
-rw-r--r-- | meta/classes/kernel.bbclass | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass index f2a5ec5de7..51626b03f8 100644 --- a/meta/classes/kernel.bbclass +++ b/meta/classes/kernel.bbclass | |||
@@ -188,6 +188,8 @@ kernel_do_install() { | |||
188 | oe_runmake DEPMOD=echo INSTALL_MOD_PATH="${D}" modules_install | 188 | oe_runmake DEPMOD=echo INSTALL_MOD_PATH="${D}" modules_install |
189 | rm "${D}/lib/modules/${KERNEL_VERSION}/build" | 189 | rm "${D}/lib/modules/${KERNEL_VERSION}/build" |
190 | rm "${D}/lib/modules/${KERNEL_VERSION}/source" | 190 | rm "${D}/lib/modules/${KERNEL_VERSION}/source" |
191 | # If the kernel/ directory is empty remove it to prevent QA issues | ||
192 | rmdir --ignore-fail-on-non-empty "${D}/lib/modules/${KERNEL_VERSION}/kernel" | ||
191 | else | 193 | else |
192 | bbnote "no modules to install" | 194 | bbnote "no modules to install" |
193 | fi | 195 | fi |