Openembedded Core Discussions
 help / color / mirror / Atom feed
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: Thu, 11 Apr 2024 01:32:46 -0700	[thread overview]
Message-ID: <28425.1712824366188020968@lists.openembedded.org> (raw)
In-Reply-To: <c87416af-73fa-4ced-b04d-5c18936b9a1e@theobroma-systems.com>

[-- Attachment #1: Type: text/plain, Size: 573 bytes --]

Hi Quentin,

On Thu, Apr 11, 2024 at 10:16 AM, Quentin Schulz wrote:

> 
> rm --dir --force
> "${D}${nonarch_base_libdir}/modules/${KERNEL_VERSION}/kernel"
> 
> instead?
> 
> -f, --force
> ignore nonexistent files and arguments, never prompt
> 
> -d, --dir
> remove empty directories
> 
> Cheers,
> Quentin

rm --dir --force does not work if the directory exists:

rm: cannot remove '/yocto/source/build-cm4/tmp/work/raspberrypi4_64-poky-linux/linux-yocto/6.6.25+git-r0/image/lib/modules/6.6.25-hcu/kernel': Directory not empty

Best regards
Heiko

[-- Attachment #2: Type: text/html, Size: 651 bytes --]

  reply	other threads:[~2024-04-11  8:32 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 [this message]
2024-04-11 13:26 ` Steve Sakoman
2024-04-11 13:40   ` Heiko
2024-04-12  9:03     ` [OE-core] " Matthias Schiffer
2024-04-12  9:52       ` Heiko
2024-04-12 12:18         ` [OE-core] " 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.1712824366188020968@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