Comment 0 for bug 1705820

Revision history for this message
Mabin (mabin359) wrote :

When I upgrade kernel with `apt` command,
this module built with wrong kernel header path.

If I use `4.10.0-20-generic` kernel version and I update `4.10.0-27-generic`,
dkms still use head path of `4.10.0-20-generic` for building.

I suggest to fix this way.

dkms.conf
MAKE="'make' all"
=>
MAKE="'make' all KVER=$kernelver"

Makefile
KVER := $(shell uname -r)
=>
KVER ?= $(shell uname -r)