Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Luca Ceresoli <luca.ceresoli@bootlin.com>
To: sean.anderson@seco.com
Cc: openembedded-core@lists.openembedded.org,
	Christophe Chapuis <chris.chapuis@gmail.com>,
	Richard Purdie <richard.purdie@linuxfoundation.org>,
	Martin Jansa <Martin.Jansa@gmail.com>,
	Saul Wold <sgw@linux.intel.com>
Subject: Re: [OE-core] [PATCH] rootfs.py: find .ko.zst kernel modules
Date: Wed, 1 Jun 2022 08:39:25 +0200	[thread overview]
Message-ID: <20220601083925.0e12b211@melee> (raw)
In-Reply-To: <20220531151052.3667079-1-sean.anderson@seco.com>

Hi Sean,

Il giorno Tue, 31 May 2022 11:10:52 -0400
"Sean Anderson via lists.openembedded.org"
<sean.anderson=seco.com@lists.openembedded.org> ha scritto:

> With CONFIG_MODULE_COMPRESS_ZSTD enabled, kernel modules will have a
> .ko.zst extension. This fixes depmod not being run.
> 
> Fixes: 1b696a45ddb ("rootfs.py: Add check for kernel modules before running depmod")

We can't blame this commit done in 2015 for not having implemented
MODULE_COMPRESS_ZSTD, added in the kernel in 2021.

And actually I don't think there is anything to fix here, but rather we
have a feature that was non-existing in the past, now it exists and we
want to support it.

So I'm taking this patch in my testing branch with the 'Fixes:' line
removed.

> Signed-off-by: Sean Anderson <sean.anderson@seco.com>
> ---
> 
>  meta/lib/oe/rootfs.py | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/meta/lib/oe/rootfs.py b/meta/lib/oe/rootfs.py
> index 98cf3f244d4..61ccf369f12 100644
> --- a/meta/lib/oe/rootfs.py
> +++ b/meta/lib/oe/rootfs.py
> @@ -311,7 +311,7 @@ class Rootfs(object, metaclass=ABCMeta):
>      def _check_for_kernel_modules(self, modules_dir):
>          for root, dirs, files in os.walk(modules_dir, topdown=True):
>              for name in files:
> -                found_ko = name.endswith((".ko", ".ko.gz", ".ko.xz"))
> +                found_ko = name.endswith((".ko", ".ko.gz", ".ko.xz", ".ko.zst"))
>                  if found_ko:
>                      return found_ko
>          return False



-- 
Luca Ceresoli, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com


  reply	other threads:[~2022-06-01  6:39 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-31 15:10 [PATCH] rootfs.py: find .ko.zst kernel modules Sean Anderson
2022-06-01  6:39 ` Luca Ceresoli [this message]
2022-06-01  7:13 ` [OE-core] " Luca Ceresoli
2022-06-02 14:52   ` Sean Anderson
2022-06-03  9:22     ` Luca Ceresoli

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=20220601083925.0e12b211@melee \
    --to=luca.ceresoli@bootlin.com \
    --cc=Martin.Jansa@gmail.com \
    --cc=chris.chapuis@gmail.com \
    --cc=openembedded-core@lists.openembedded.org \
    --cc=richard.purdie@linuxfoundation.org \
    --cc=sean.anderson@seco.com \
    --cc=sgw@linux.intel.com \
    /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