summaryrefslogtreecommitdiff
path: root/Makefile
blob: 5daf5b4e3c0a39bb5de6c2d57ca36d138bfbed7f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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
clean:
	make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean