summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorknolax <1339802534.kk@gmail.com>2017-12-28 19:31:17 -0500
committerknolax <1339802534.kk@gmail.com>2017-12-28 19:31:17 -0500
commita696826312b854ecf44aa273f8232106f5cdae6c (patch)
treeea0d0af3583e6daf6ba0c3db947b080baee42fb1 /Makefile
parent75f09556956c0fb5a63b6a708c10ab1544cd4ccc (diff)
added install target to makefile, not sure if i have to turn the *.ko file into a gunzip, so testing this
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index ea2bf41..7084284 100644
--- a/Makefile
+++ b/Makefile
@@ -4,5 +4,9 @@ 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