Also it should be trivial to run this as an out-of-tree module until it's merged.
With DKMS or put hid_bl.c into an empty directory and add the following makefile:
```
ifneq ($(KERNELRELEASE),)
# kbuild part of makefile
obj-m := hid_bl.o
else
# normal makefile
KDIR ?= /lib/modules/`uname -r`/build
Also it should be trivial to run this as an out-of-tree module until it's merged. With DKMS or put hid_bl.c into an empty directory and add the following makefile:
``` ifneq ($(KERNELRELEASE),) # kbuild part of makefile obj-m := hid_bl.o
else # normal makefile KDIR ?= /lib/modules/`uname -r`/build
modules:
%: $(MAKE) -C $(KDIR) M=$$PWD $@
endif ```