Skip to contentSkip to conversation

rootfs.py: find .ko.gz and .ko.xz kernel modules as well

PATCH Martin Jansa 1 participant 1 message Apr 29, 2021 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

Ignore this for now, something else seems to be still broken. Will send v2 later.

Quoted 35 lines · Martin Jansa via lists.openembedded.org

From: Christophe Chapuis <[email protected]>

* 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

---
 meta/lib/oe/rootfs.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/lib/oe/rootfs.py +1 -1
index 5f81023040..e4de0bfddf 100644
@@ -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") or
 name.endswith(".ko.gz") or name.endswith(".ko.xz")
                 if found_ko:
                     return found_ko

return False
--
2.30.2