From 6ce320ba67a9238b621cdb2a55e5fbef08cef250 Mon Sep 17 00:00:00 2001 From: piernov Date: Wed, 1 Mar 2023 12:51:59 +0100 Subject: [PATCH] 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 --- src/oscdriver/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/oscdriver/Makefile b/src/oscdriver/Makefile index 773db48..a47833f 100644 --- a/src/oscdriver/Makefile +++ b/src/oscdriver/Makefile @@ -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