diff options
author | Dixit Parmar <dixitparmar19@gmail.com> | 2025-06-09 19:15:35 +0530 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-06-12 11:03:43 +0100 |
commit | 7f9f608d39cd11fb3d3da7b6c9ec5f447ed45745 (patch) | |
tree | 60061ceb9f1a15304ba6752d7138e51ab4c5d264 /meta/recipes-devtools/python-numpy/python-numpy.inc | |
parent | 36b5c3e78c38bbf6aabd7d8e02092b9132869606 (diff) | |
download | poky-7f9f608d39cd11fb3d3da7b6c9ec5f447ed45745.tar.gz |
kernel-module-split: fix conf file generation when KERNEL_SPLIT_MODULES=0
KERNEL_MODULE_AUTOLOAD defines the list of the kernel modules to be autoloaded
on boot. kernel-module-split.bbclass generates the required modules.load.d and
conf files for each kernel module. This conf files inturn read by system service
to perform module loading and configuration. When a kernel module is added to
KERNEL_MODULE_AUTOLOAD the conf files must be generated in all cases.
When KERNEL_SPLIT_MODULES=0 modprobe and autoload conf files are not
getting generated for the kernel modules.
To fix that enhanced the class implementation by separating out conf
file handling mechanism in two functions, generate_conf_files() and
frob_metadata(). generate_conf_files() handles no-split case where as
frob_metadata() keeps handling the existing case for spliting the modules.
Splitted common handling/generation of conf files stuff in to handle_conf_files()
function which gets invoked by both frob_metadata() and generate_conf_files()
on top of the scenario specific handling done in respective functions.
This implementation covers generation of the conf files for in-tree kernel
modules as well as standalone kernel module built as seperate package/recipe.
[YOCTO #15145]
(From OE-Core rev: cf998576ccfd20a61a9afa6df27fb73d93c8ed9a)
Signed-off-by: Dixit Parmar <dixitparmar19@gmail.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/python-numpy/python-numpy.inc')
0 files changed, 0 insertions, 0 deletions