summaryrefslogtreecommitdiff
path: root/Makefile
blob: e0e441aff50697062bf312e50aeae9f9aaecb792 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
obj-m := skey.o

all:
	make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules
dtbo:
	dtc -@ -I dts -o skey.dtbo skey.dts
install:
	cp skey.ko /lib/modules/$(shell uname -r)/kernel/drivers/hid/skey.ko
	depmod
	cp skey.dtbo /boot/overlays/skey.dtbo
clean:
	make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean