-
Notifications
You must be signed in to change notification settings - Fork 151
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Kernel match for BUILT_MODULE_NAME #392
Comments
CLEAN[#] and CLEAN_MATCH[#] can be additional improvement. |
We recently got some options that may help here: Both of those are global, meaning per dkms.conf module, instead of per kernel module. At a glance, two ways to move forward come to mind:
|
Thanks for tips. |
Yes for option A two packages will be needed. That should be practically zero maintenance (given some minor automation), since a) the code will be identical and b) the pre 6.5 dkms.conf will effectively be frozen. Assuming you scope the Debian versions, you can even get away with single package. If that's not a route you prefer, option B should work. Although for you'd need to write a bit of code and tests ;-) Aside: you'd want to try |
One of the most sophisticated (and dynamically self-generating) dkms.conf I'v seen so far is But for your problem its probably sufficient to do something conditional like
(you have the complete bash syntax available for |
Excellent! |
Resolved that with
Issue can be closed. |
you probably want (the bash equvivalent of) |
Personally I find using bash/shell scripting in the configuration file an abuse of implementation details. In the past we have taken actions to reduce that and I expect more to come in the future. So be warned ;-) Let's keep this open with the goal of making BUILD_EXCLUSIVE_KERNEL_MIN/MAX an array. |
We are building UVC kernel module.
To rebuild uvc modules prior to kernel 6.5 we needed only videodev and uvcvideo modules.
With kernel 6.5 there was refactoring of uvc framework and now we have another dependency - uvc module.
Kernel 5.15, same as 6.2:
Getting this error for building on kernel 5.15.0 when having another module in conf file:
BUILT_MODULE_NAME[2]="uvc"
Error! Build of uvc.ko failed for: 5.15.0-25-generic (x86_64)
What is missing now is key DEPENDS, like BUILT_MODULE_DEPENDS:
Thanks.
The text was updated successfully, but these errors were encountered: