summaryrefslogtreecommitdiffstats
path: root/meta/classes-recipe/kernel.bbclass
diff options
context:
space:
mode:
authorRyan Eatmon <reatmon@ti.com>2023-08-31 14:26:29 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-09-02 11:47:50 +0100
commit81af7cd4065acf092b9b9d10f52f1895025d85bb (patch)
tree4ccd95fa6ee336efef9073d2e0107e7f975ae597 /meta/classes-recipe/kernel.bbclass
parent42e6df5222b37deabb11ef8b3811a03917d0ecd9 (diff)
downloadpoky-81af7cd4065acf092b9b9d10f52f1895025d85bb.tar.gz
kernel.bbclass: Add force flag to rm calls
The latest 6.5 kernels do not appear to create the source file in ${D}${nonarch_base_libdir}/modules/${KERNEL_VERSION}/source so the recipe errors out when trying to remove it. Simple fix is to add the -f (force) flag to the call. (From OE-Core rev: 2e669bf797b15d803e7d6a700e449bdc467a4bcc) Signed-off-by: Ryan Eatmon <reatmon@ti.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.bbclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes-recipe/kernel.bbclass b/meta/classes-recipe/kernel.bbclass
index acb43bd4d5..2ec9ea2091 100644
--- a/meta/classes-recipe/kernel.bbclass
+++ b/meta/classes-recipe/kernel.bbclass
@@ -454,8 +454,8 @@ kernel_do_install() {
454 unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS MACHINE 454 unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS MACHINE
455 if (grep -q -i -e '^CONFIG_MODULES=y$' .config); then 455 if (grep -q -i -e '^CONFIG_MODULES=y$' .config); then
456 oe_runmake DEPMOD=echo MODLIB=${D}${nonarch_base_libdir}/modules/${KERNEL_VERSION} INSTALL_FW_PATH=${D}${nonarch_base_libdir}/firmware modules_install 456 oe_runmake DEPMOD=echo MODLIB=${D}${nonarch_base_libdir}/modules/${KERNEL_VERSION} INSTALL_FW_PATH=${D}${nonarch_base_libdir}/firmware modules_install
457 rm "${D}${nonarch_base_libdir}/modules/${KERNEL_VERSION}/build" 457 rm -f "${D}${nonarch_base_libdir}/modules/${KERNEL_VERSION}/build"
458 rm "${D}${nonarch_base_libdir}/modules/${KERNEL_VERSION}/source" 458 rm -f "${D}${nonarch_base_libdir}/modules/${KERNEL_VERSION}/source"
459 # Remove empty module directories to prevent QA issues 459 # Remove empty module directories to prevent QA issues
460 find "${D}${nonarch_base_libdir}/modules/${KERNEL_VERSION}/kernel" -type d -empty -delete 460 find "${D}${nonarch_base_libdir}/modules/${KERNEL_VERSION}/kernel" -type d -empty -delete
461 else 461 else