dkms will not build for correct kernel, only running one
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
rtl8812au (Ubuntu) |
Incomplete
|
Medium
|
Canonical Kernel Team | ||
Bug Description
Whenever we try to build the dkms package for a kernel that is not running, it will fail.
# uname -r
4.20.0-0-generic
# dkms build rtl8812au/
Kernel preparation unnecessary for this kernel. Skipping...
Building module:
cleaning build area...
'make' all...(bad exit status: 2)
Error! Bad return status for module build on kernel: 4.18.0-11-generic (x86_64)
Consult /var/lib/
# head /var/lib/
DKMS make.log for rtl8812au-
Fri Nov 23 13:41:47 UTC 2018
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/
make[1]: *** /lib/modules/
Makefile:1457: recipe for target 'modules' failed
make: *** [modules] Error 2
This needs two fixes. One in the Makefile, to make it accept a parameter when calling make that gives the correct version and path to be used. Could be just using KVER ?= instead of KVER :=.
The second fix is in dkms.conf to pass that parameter.