mirror of
https://github.com/ISpillMyDrink/OpenSuperClone.git
synced 2026-08-25 04:26:31 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user