diff options
authorChristophe Chapuis <>2021-04-29 15:41:27 +0200
committerRichard Purdie <>2021-05-11 12:02:29 +0100
commite5ab48e8b574306c6abdfd54ff548fb5f22d9dcf (patch)
parentb35658c7fc1258680069fbff3c6b88d0deb5f489 (diff)
poky-e5ab48e8b574306c6abdfd54ff548fb5f22d9dcf.tar.bz2 find .ko.gz and .ko.xz kernel modules as well
* with xz PACKAGECONFIG enabled in kmod and xz module compression enabled in kernel the do_rootfs task doesn't run depmod in the image, because it thinks there are no modules: NOTE: No Kernel Modules found, not running depmod (From OE-Core rev: 96a751b84d15480304b931264b9e5d07098c0a90) Signed-off-by: Martin Jansa <> Signed-off-by: Christophe Chapuis <> Signed-off-by: Martin Jansa <> Signed-off-by: Richard Purdie <> (cherry picked from commit 9c13ce05eae0f126eb150e48709e9bd06e9280fa) Signed-off-by: Anuj Mittal <> Signed-off-by: Richard Purdie <>
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/oe/ b/meta/lib/oe/
index 5f81023040..d634adda4e 100644
--- a/meta/lib/oe/
+++ b/meta/lib/oe/
@@ -305,7 +305,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")
+ found_ko = name.endswith((".ko", ".ko.gz", ".ko.xz"))
if found_ko:
return found_ko
return False