summaryrefslogtreecommitdiffstats
path: root/meta/lib
diff options
context:
space:
mode:
authorSean Anderson <sean.anderson@seco.com>2022-05-31 11:10:52 -0400
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-06-06 13:36:05 +0100
commit25c2ca903ade5c44bbd379ca61ae7031a99c3b8f (patch)
treeefce5995e99fdaca12e630fa888fa8ec45983530 /meta/lib
parentd79c5ee23368fe62bf06d81a886473132473dafb (diff)
downloadpoky-25c2ca903ade5c44bbd379ca61ae7031a99c3b8f.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: 425efac7110f0f42d70643e0a448e834d0f01a7a) Signed-off-by: Sean Anderson <sean.anderson@seco.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib')
-rw-r--r--meta/lib/oe/rootfs.py2
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