forked from JohnMH/chipone_ts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (24 loc) · 737 Bytes
/
Copy pathMakefile
File metadata and controls
32 lines (24 loc) · 737 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
TARGET = chipone_ts
KVER = $(shell uname -r)
PWD = $(shell pwd)
KMOD = /lib/modules/$(KVER)
KDIR = $(KMOD)/build
KMODDEST = $(KMOD)/kernel/drivers/input/touchscreen/
obj-m = $(TARGET).o
$(TARGET)-objs = chipone_main.o chipone_fw.o chipone_regs.o chipone_sysfs.o
default:
$(MAKE) -C $(KDIR) M=$(PWD) modules
hi10:
KCPPFLAGS="-DCONFIG_HI10=1" $(MAKE) default
vi8plus:
KCPPFLAGS="-DCONFIG_VI8PLUS=1" $(MAKE) default
cw1515:
KCPPFLAGS="-DCONFIG_CW1515=1" $(MAKE) default
install:
install -p -m 644 $(TARGET).ko $(KMODDEST)
/sbin/depmod -a $(KVER)
uninstall:
rm -f $(KMODDEST)/$(TARGET).ko
/sbin/depmod -a $(KVER)
clean:
make -C $(KDIR) M=$(PWD) clean