diff options
| author | Sean Anderson <sean.anderson@seco.com> | 2022-05-31 11:10:52 -0400 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-06-11 10:06:13 +0100 |
| commit | 6c51379206408cb412eb9b9f81bbffd3ca6431ae (patch) | |
| tree | 1fc2eebbf1c5854f1ccbd55c16c3a4838c4eba95 /meta/lib | |
| parent | a04b59c40b38e74aa3a76740065598e256e50f2c (diff) | |
| download | poky-6c51379206408cb412eb9b9f81bbffd3ca6431ae.tar.gz | |
rootfs.py: find .ko.zst kernel modules
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")
(From OE-Core rev: 6ade2bfdd9297896b9f251dd62f55e461fef1a3e)
Signed-off-by: Sean Anderson <sean.anderson@seco.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 425efac7110f0f42d70643e0a448e834d0f01a7a)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib')
| -rw-r--r-- | meta/lib/oe/rootfs.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/oe/rootfs.py b/meta/lib/oe/rootfs.py index 98cf3f244d..61ccf369f1 100644 --- a/meta/lib/oe/rootfs.py +++ b/meta/lib/oe/rootfs.py | |||
| @@ -311,7 +311,7 @@ class Rootfs(object, metaclass=ABCMeta): | |||
| 311 | def _check_for_kernel_modules(self, modules_dir): | 311 | def _check_for_kernel_modules(self, modules_dir): |
| 312 | for root, dirs, files in os.walk(modules_dir, topdown=True): | 312 | for root, dirs, files in os.walk(modules_dir, topdown=True): |
| 313 | for name in files: | 313 | for name in files: |
| 314 | found_ko = name.endswith((".ko", ".ko.gz", ".ko.xz")) | 314 | found_ko = name.endswith((".ko", ".ko.gz", ".ko.xz", ".ko.zst")) |
| 315 | if found_ko: | 315 | if found_ko: |
| 316 | return found_ko | 316 | return found_ko |
| 317 | return False | 317 | return False |
