]> code.ossystems Code Review - openembedded-core.git/commitdiff
rootfs.py: find .ko.gz and .ko.xz kernel modules as well
authorChristophe Chapuis <chris.chapuis@gmail.com>
Thu, 29 Apr 2021 13:41:27 +0000 (15:41 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 2 May 2021 22:21:39 +0000 (23:21 +0100)
* 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

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Christophe Chapuis <chris.chapuis@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oe/rootfs.py

index 5f8102304059b065c3ae4bb7aaa00919074175e8..d634adda4e989a712867470538eb7775c020366b 100644 (file)
@@ -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