From: "Heiko" <heiko.thole@entwicklung.eq-3.de>
To: openembedded-core@lists.openembedded.org
Subject: Re: [kirkstone][PATCH] kernel.bbclass: check, if directory exists before removing empty module directory
Date: Fri, 12 Apr 2024 02:52:51 -0700 [thread overview]
Message-ID: <28425.1712915571508713687@lists.openembedded.org> (raw)
In-Reply-To: <a357002eff78472d58c5864cd6f258eb67450fea.camel@ew.tq-group.com>
[-- Attachment #1.1: Type: text/plain, Size: 171 bytes --]
I used " git send- email". I don`t know, why the tabs were replaced.
I have attached the patch with tabs. (Or do I have to create a new post?)
Best regards,
Heiko
[-- Attachment #1.2: Type: text/html, Size: 295 bytes --]
[-- Attachment #2: kirkstone-kernel.bbclass-check-if-directory-exists-before-removing-empty-module-directory.diff --]
[-- Type: application/octet-stream, Size: 712 bytes --]
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index dbd89057f3..988a489396 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -452,7 +452,7 @@ kernel_do_install() {
rm -f "${D}${nonarch_base_libdir}/modules/${KERNEL_VERSION}/build"
rm -f "${D}${nonarch_base_libdir}/modules/${KERNEL_VERSION}/source"
# Remove empty module directories to prevent QA issues
- find "${D}${nonarch_base_libdir}/modules/${KERNEL_VERSION}/kernel" -type d -empty -delete
+ [ -d "${D}${nonarch_base_libdir}/modules/${KERNEL_VERSION}/kernel" ] && find "${D}${nonarch_base_libdir}/modules/${KERNEL_VERSION}/kernel" -type d -empty -delete
else
bbnote "no modules to install"
fi
next prev parent reply other threads:[~2024-04-12 9:52 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-11 8:05 [kirkstone][PATCH] kernel.bbclass: check, if directory exists before removing empty module directory Heiko Thole
2024-04-11 8:05 ` [PATCH] " Heiko Thole
2024-04-11 8:16 ` [OE-core] [kirkstone][PATCH] " Quentin Schulz
2024-04-11 8:32 ` Heiko
2024-04-11 13:26 ` [OE-core] " Steve Sakoman
2024-04-11 13:40 ` Heiko
2024-04-12 9:03 ` [OE-core] " Matthias Schiffer
2024-04-12 9:52 ` Heiko [this message]
2024-04-12 12:18 ` Steve Sakoman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=28425.1712915571508713687@lists.openembedded.org \
--to=heiko.thole@entwicklung.eq-3.de \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox