mirror of
https://git.yoctoproject.org/poky
synced 2026-06-01 00:59:48 +00:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
cd618cc017
commit
2d96636ebc
@@ -305,7 +305,7 @@ class Rootfs(object, metaclass=ABCMeta):
|
|||||||
def _check_for_kernel_modules(self, modules_dir):
|
def _check_for_kernel_modules(self, modules_dir):
|
||||||
for root, dirs, files in os.walk(modules_dir, topdown=True):
|
for root, dirs, files in os.walk(modules_dir, topdown=True):
|
||||||
for name in files:
|
for name in files:
|
||||||
found_ko = name.endswith(".ko")
|
found_ko = name.endswith((".ko", ".ko.gz", ".ko.xz"))
|
||||||
if found_ko:
|
if found_ko:
|
||||||
return found_ko
|
return found_ko
|
||||||
return False
|
return False
|
||||||
|
|||||||
Reference in New Issue
Block a user