From 9febea9e6f4f2a5539e39fe61be209cf68c85b41 Mon Sep 17 00:00:00 2001 From: Richard Sailer Date: Mon, 10 Jun 2019 14:24:03 +0200 Subject: [PATCH] Makefile: Remove incorrect and suprefluous KDIR variable definition The KDIR variable assignment gets overwritten by the KDIR=... in the make invocation started from dkms. So it gets never used. (See: https://stackoverflow.com/questions/2826029/passing-additional-variables-from-command-line-to-make ) Even if it would be used it would lead to compilation errors, since KDIR has to be defined by dkms (when it "cross-compiles" for other kernels), not by uname with our current kernel --- Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Makefile b/Makefile index f327190..d6dc158 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,6 @@ obj-m := ./src/tuxedo_keyboard.o tuxedo_tuxedo-objs := ./src/tuxedo_keyboard.o PWD := $(shell pwd) -KDIR := /lib/modules/$(shell uname -r)/build all: make -C $(KDIR) M=$(PWD) modules @@ -20,4 +19,4 @@ dkmsadd: dkmsremove: dkms remove -m tuxedo_keyboard -v 1 --all - rm -rf /usr/src/tuxedo_keyboard-1 \ No newline at end of file + rm -rf /usr/src/tuxedo_keyboard-1