Commit Graph

3 Commits

Author SHA1 Message Date
Joachim Hummel
500a939db4 Fix DKMS build using the wrong kernel version
The DKMS Makefile built against /lib/modules/$(uname -r), the *running*
kernel. When DKMS rebuilds the module for a newly installed kernel (the
common case after an apt upgrade, while the old kernel is still running),
it produced a .ko with the old kernel's vermagic and installed it into
the new kernel's tree. The module then failed to load with "disagrees
about version of symbol module_layout".

Make the Makefile honour a KVERSION variable (defaulting to the running
kernel for manual builds) and have dkms.conf pass DKMS's target kernel
via KVERSION=${kernelver}, so the module is always built for the kernel
it is being installed for.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-16 23:07:17 +02:00
Jeff Curless
ca66fa0ea4 dkms appears to be working.
Modified the Makefile and dkms.conf file and things seem to be happier.
Now its just a matter of testing on multiple platforms with releases.
2026-01-10 18:43:58 -05:00
Jeff Curless
6c84fd6422 Initial version of DKMS support.
Worked once, will not work again.  Build occurs, dkms reports that the
build of ./src/oneUpPower.ko failed.  Kernel module is being generated,
but not located anywhere it can be found.
2026-01-10 17:53:21 -05:00