summaryrefslogtreecommitdiff
path: root/Makefile
blob: 708428407c0bce32e5544e7beff8f4cdb7bd4bdc (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: all dtbo
	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