Ship ec_sys as a dkms module for Debian #205
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Some distributions do not compile ec_sys module in the kernel packages [1]. In order not to depend if the module is available on the distribution, I made a dkms module based on the original ec_sys module.
The source code for this ec_sys dkms-ish module was extracted from Linux 5.10.46 version and it can be used by older or newer kernel versions. It is located on /dkms folder.
Additionally, I modified the debian packaging to support automatic build and activation of dkms modules. It is enough smart to build only when ec_sys module will not be available in the system.
[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=980555