summaryrefslogtreecommitdiffstats
path: root/meta/lib
diff options
context:
space:
mode:
authorChristophe Chapuis <chris.chapuis@gmail.com>2021-04-29 15:41:27 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-05-02 23:21:42 +0100
commit2d96636ebc2d3b7e8103ca9d27e0f966f2f7cd86 (patch)
tree2b88d548680c5949b810b23b063910ab5b82f849 /meta/lib
parentcd618cc017efc45483f20e5f3eb702e511295146 (diff)
downloadpoky-2d96636ebc2d3b7e8103ca9d27e0f966f2f7cd86.tar.gz
rootfs.py: 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: 9c13ce05eae0f126eb150e48709e9bd06e9280fa) 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>
Diffstat (limited to 'meta/lib')
-rw-r--r--meta/lib/oe/rootfs.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/oe/rootfs.py b/meta/lib/oe/rootfs.py
index 5f81023040..d634adda4e 100644
--- a/meta/lib/oe/rootfs.py
+++ b/meta/lib/oe/rootfs.py
@@ -305,7 +305,7 @@ class Rootfs(object, metaclass=ABCMeta):
305 def _check_for_kernel_modules(self, modules_dir): 305 def _check_for_kernel_modules(self, modules_dir):
306 for root, dirs, files in os.walk(modules_dir, topdown=True): 306 for root, dirs, files in os.walk(modules_dir, topdown=True):
307 for name in files: 307 for name in files:
308 found_ko = name.endswith(".ko") 308 found_ko = name.endswith((".ko", ".ko.gz", ".ko.xz"))
309 if found_ko: 309 if found_ko:
310 return found_ko 310 return found_ko
311 return False 311 return False