mirror of
https://github.com/wessel-novacustom/clevo-keyboard.git
synced 2024-11-15 03:34:01 +01:00
9febea9e6f
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
23 lines
404 B
Makefile
23 lines
404 B
Makefile
obj-m := ./src/tuxedo_keyboard.o
|
|
|
|
tuxedo_tuxedo-objs := ./src/tuxedo_keyboard.o
|
|
|
|
PWD := $(shell pwd)
|
|
|
|
all:
|
|
make -C $(KDIR) M=$(PWD) modules
|
|
|
|
clean:
|
|
make -C $(KDIR) M=$(PWD) clean
|
|
|
|
install:
|
|
make -C $(KDIR) M=$(PWD) modules_install
|
|
|
|
dkmsadd:
|
|
cp -R . /usr/src/tuxedo_keyboard-1
|
|
dkms add -m tuxedo_keyboard -v 1
|
|
|
|
dkmsremove:
|
|
dkms remove -m tuxedo_keyboard -v 1 --all
|
|
rm -rf /usr/src/tuxedo_keyboard-1
|