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-13 22:10:06 +0100
commit06f80cd38adf4cd429f0e430241b3f668b4a0f12 (patch)
tree0e433c211dc5bb0f2cf6c2b48c90e771e2fb4a24 /meta/lib
parenta767a7140697ade88e576af6d6ac49437def70bd (diff)
downloadpoky-06f80cd38adf4cd429f0e430241b3f668b4a0f12.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: e198806404472a10230086b54544d83077381d19) 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> 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 cd65e62030..23e156c47b 100644
--- a/meta/lib/oe/rootfs.py
+++ b/meta/lib/oe/rootfs.py
@@ -304,7 +304,7 @@ class Rootfs(object, metaclass=ABCMeta):
304 def _check_for_kernel_modules(self, modules_dir): 304 def _check_for_kernel_modules(self, modules_dir):
305 for root, dirs, files in os.walk(modules_dir, topdown=True): 305 for root, dirs, files in os.walk(modules_dir, topdown=True):
306 for name in files: 306 for name in files:
307 found_ko = name.endswith(".ko") 307 found_ko = name.endswith((".ko", ".ko.gz", ".ko.xz"))
308 if found_ko: 308 if found_ko:
309 return found_ko 309 return found_ko
310 return False 310 return False