Bug 13226 - Support out of tree modules for alternate kernels
Summary: Support out of tree modules for alternate kernels
Status: ACCEPTED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: kernel (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Medium+ enhancement
Target Milestone: 6.2 M2
Assignee: Bruce Ashfield
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2019-03-15 00:19 UTC by jonathan.yong
Modified: 2026-10-27 22:56 UTC (History)
2 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Yes (doc changes required)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jonathan.yong 2019-03-15 00:19:16 UTC
Now that it is possible to build multiple kernels with KERNEL_PACKAGE_NAME, out of tree kernel modules using the module bbclass still need to be handled for alternate kernels.
Comment 1 Bruce Ashfield 2019-03-15 21:51:42 UTC
Can you elaborate on the parts that are not working ? Are they building against the wrong headers ? The wrong kernel source ? Something else ? 

Also, can you supply your test configuration and setup for showing the issues.

Since you are already setup to see the issues, it saves everyone time if you provide the details in the bug.
Comment 2 jonathan.yong 2019-03-18 00:58:23 UTC
Today the out of tree modules build fine, but it is only built against the kernel PREFERRED_PROVIDER_virtual/kernel kernel (where KERNEL_PACKAGE_NAME is set to "kernel").

I am not aware of a method to build the same out of tree kernel module against the other kernels that have KERNEL_PACKAGE_NAME set to something besides "kernel".
Comment 3 Stephen K Jolley 2019-03-29 16:17:56 UTC
Bruce,

It appears you question has been answered.  I have moved this out of NEEDINFO back to accepted.
Comment 4 Bruce Ashfield 2021-03-15 19:14:51 UTC
bumping to next release.
Comment 5 Randy MacLeod 2024-10-17 19:04:12 UTC
Bulk move of medium importance bugs from 5.1 to 5.2 on behalf of Bruce.
Comment 6 Bruce Ashfield 2026-10-27 22:56:07 UTC
Moving off old milestone per bug cleanup (to 6.2 M2).