oscdriver: Makefile use KERNELVERSION variable automatically supplied by DKMS instead of KVERSION

Allows building with DKMS for a kernel different from the one currently running
This commit is contained in:
piernov
2023-03-01 12:51:59 +01:00
parent 295dd396a9
commit 6ce320ba67
+2 -2
View File
@@ -1,10 +1,10 @@
KMOD = oscdriver
KVERSION = $(shell uname -r)
KERNELRELEASE ?= $(shell uname -r)
obj-m = $(KMOD).o
MAKE_FLAGS = -C
KDIR = /lib/modules/$(KVERSION)/build
KDIR = /lib/modules/$(KERNELRELEASE)/build
IOCTL = oscdriverc
MMAP_M = oscdrivermap_m