Skip to content
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

Rework DKMS integration #517

Merged
merged 5 commits into from
Dec 23, 2024
Merged

Conversation

kakra
Copy link
Collaborator

@kakra kakra commented Dec 18, 2024

Please test.

See-also: atar-axis#323
Signed-off-by: Kai Krakow <kai@kaishome.de>
Signed-off-by: Kai Krakow <kai@kaishome.de>
This adds a new top-level `Makefile` for easy installation via package
managers. Instead of directly building the DKMS module, this allows
a package installer to just provide the source code and install the
support files. Building of the actual module via DKMS is left to the
package maintainer.

To aid following packaging guidelines, two variables are provided:

- `PREFIX`: Allows to install the package to a pre-install image which
  can be put in an archive for package deployment and file tracking. If
  this variable is provided, it will also skip deployment of the DKMS
  source tree. This is mainly due to limitations of DKMS handling
  prefixed installations properly. Package maintainers have to do this
  manually in a post-installation step.

- `ETC_PREFIX`: Allows to install files to `/usr/lib` which would
  normally go to `/etc`. This is applied relative to `PREFIX`.

TL;DR: `dkms add` won't be run if `PREFIX` is provided.

Please read `docs/PACKAGING.md`.

Maybe-fixes: atar-axis#405
Maybe-fixes: atar-axis#425
Maybe-fixes: atar-axis#431
Maybe-fixes: atar-axis#491
Signed-off-by: Kai Krakow <kai@kaishome.de>
Closes: atar-axis#323
Signed-off-by: Kai Krakow <kai@kaishome.de>
Signed-off-by: Kai Krakow <kai@kaishome.de>
@kakra kakra force-pushed the rework/dkms-integration branch from 3b489bf to 206e9b3 Compare December 23, 2024 12:59
Copy link

codeclimate bot commented Dec 23, 2024

Code Climate has analyzed commit 206e9b3 and detected 0 issues on this pull request.

View more on Code Climate.

@kakra kakra merged commit 8685a11 into atar-axis:master Dec 23, 2024
5 checks passed
@kakra kakra deleted the rework/dkms-integration branch December 23, 2024 13:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant