summaryrefslogtreecommitdiff
path: root/Makefile
blob: d450668749edf1243e4c0374fe3929b7d0fd24d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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
	cp skey.service /etc/systemd/system/skey.service
	systemctl daemon-reload
clean:
	make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean