Skip to content

Commit

Permalink
Fix path to kernel build dir. (#14)
Browse files Browse the repository at this point in the history
Don't use version of the currently running kernel, but the
version the module is build for (when buildung for multiple
installed kernels or during kernel upgrades).
  • Loading branch information
jotomo authored and berarma committed Nov 27, 2019
1 parent 3dfe622 commit e7601c0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
KDIR ?= /lib/modules/`uname -r`/build
KVERSION := `uname -r`
KDIR := /lib/modules/${KVERSION}/build

default:
$(MAKE) -C $(KDIR) M=$$PWD
Expand Down
2 changes: 1 addition & 1 deletion dkms.conf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
PACKAGE_NAME="new-lg4ff"
PACKAGE_VERSION="0.1"
MAKE[0]="make"
MAKE[0]="make KVERSION=$kernelver"
CLEAN="make clean"
BUILT_MODULE_NAME[0]="hid-logitech-new"
DEST_MODULE_NAME[0]="hid-logitech"
Expand Down

0 comments on commit e7601c0

Please sign in to comment.