From: Sean Anderson Date: Tue, 31 May 2022 15:10:52 +0000 (-0400) Subject: rootfs.py: find .ko.zst kernel modules X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~3941 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=425efac7110f0f42d70643e0a448e834d0f01a7a;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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") Signed-off-by: Sean Anderson Signed-off-by: Richard Purdie --- 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