diff options
author | Ovidiu Panait <ovidiu.panait@windriver.com> | 2022-12-05 16:56:49 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-12-08 10:48:36 +0000 |
commit | 7c86d2d9962254db27a2f87617991842713699d8 (patch) | |
tree | 6770485f140aef702abb69a0fb8849ed11f83200 /meta/classes-recipe/kernel.bbclass | |
parent | 5bab8d0318fc24da09246e8fba07caf53cb04619 (diff) | |
download | poky-7c86d2d9962254db27a2f87617991842713699d8.tar.gz |
kernel.bbclass: remove empty module directories to prevent QA issues
Currently, allyesconfig test runs for x86_64 fail with:
ERROR: linux-yocto-5.19.17+gitAUTOINC+0cba9aa404_aaf4490d18-r0 do_package:
QA Issue: linux-yocto: Files/directories were installed but not shipped in any
package:
/lib/modules/5.19.17/kernel/drivers/nvdimm
With CONFIG_NVDIMM_TEST_BUILD=m, an empty nvdimm directory is created during
modules_install, which triggers the QA issue.
Extend kernel_do_install() to also remove inner empty directories that might
get created by modules_install.
(From OE-Core rev: 7120b09a33af4c9a18063c0f2e51fb598697e39c)
Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes-recipe/kernel.bbclass')
-rw-r--r-- | meta/classes-recipe/kernel.bbclass | 4 |
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 |