From 94b275f065e15948f7de2d88074d295c7ad1850b Mon Sep 17 00:00:00 2001 From: Richard Sailer Date: Mon, 8 Jul 2019 14:36:36 +0200 Subject: [PATCH] Makefile: reintroduce KDIR variable definition, as a default Necesarry as default when make is called without dkms. If called with dkms, luckily the variable and value passed as command line parameter overides the one defined in the makefile as desired. So removing was not necesarry, details in: https://www.gnu.org/software/make/manual/make.html#Using-Variables --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index d6dc158..ea65343 100644 --- a/Makefile +++ b/Makefile @@ -3,6 +3,7 @@ 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