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

Allow kernel specific dkms.conf #295

Open
16Martin opened this issue Jan 24, 2023 · 1 comment
Open

Allow kernel specific dkms.conf #295

16Martin opened this issue Jan 24, 2023 · 1 comment

Comments

@16Martin
Copy link

I have different kernels on my system, which were built using different versions of GCC. I need to make sure dkms uses the correct GCC version for each individual kernel.

I can create this effect for specific modules and versions, because dkms has (starting on line 476) a set of dkms.conf files it loads in sequence. This list contains /etc/dkms/$module-$module_version-$1.conf where $1 is the kernel version. If I create such files with their contents of the form

MAKE[0]="CC=/usr/bin/gcc-x.y.z make"

I can get the desired effect.

However, I manually have to maintain such files for all modules for all versions for all kernel versions, which is a bit unwieldy.`

I would like to see the list of default dkms.conf files extended to include something along the lines of

  • /etc/dkms/$1.conf
  • /etc/dkms/$1-$2.conf

so that I can have default configs for all kernels and architectures. (I left out the architecture part above to keep the description short.)

@xuzhen
Copy link
Collaborator

xuzhen commented Jan 24, 2023

Could you try this branch https://github.com/xuzhen/dkms/tree/cc ?
It can automatically detecting gcc version used by target kernel if kernel version >= 4.18. No longer need to add CC=... in dkms.conf

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

No branches or pull requests

2 participants