]> 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)
committerSteve Sakoman <steve@sakoman.com>
Fri, 7 May 2021 15:21:23 +0000 (05:21 -1000)
* 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>
(cherry picked from commit 9c13ce05eae0f126eb150e48709e9bd06e9280fa)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/lib/oe/rootfs.py

index cd65e620300888da6d79386f9591bc35d7383065..23e156c47bf87d98e07ba149796cc6905bf9ee74 100644 (file)
@@ -304,7 +304,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