File tree Expand file tree Collapse file tree 10 files changed +2048
-1831
lines changed Expand file tree Collapse file tree 10 files changed +2048
-1831
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,11 @@ SRC_DIR=$(cd $(dirname ${BASH_SOURCE:-$0}); cd ../; pwd)
6
6
7
7
lint_driver () {
8
8
pushd $SRC_DIR /src/drivers
9
- python3 $SRC_DIR /.test/bin/run-clang-format.py rtmouse.c
9
+ python3 $SRC_DIR /.test/bin/run-clang-format.py rtmouse_main.c
10
+ python3 $SRC_DIR /.test/bin/run-clang-format.py rtmouse_dev.c
11
+ python3 $SRC_DIR /.test/bin/run-clang-format.py rtmouse_spi.c
12
+ python3 $SRC_DIR /.test/bin/run-clang-format.py rtmouse_i2c.c
13
+ python3 $SRC_DIR /.test/bin/run-clang-format.py rtmouse_gpio.c
10
14
python3 $SRC_DIR /.test/bin/run-clang-format.py rtmouse.h
11
15
popd
12
16
}
Original file line number Diff line number Diff line change 1
1
MODULE:= rtmouse
2
2
obj-m:= $(MODULE).o
3
+ $(MODULE)-y:= $(MODULE)_main.o $(MODULE)_dev.o $(MODULE)_spi.o $(MODULE)_i2c.o $(MODULE)_gpio.o
3
4
clean-files:= *.o *.ko *.mod.[co] *~
4
5
5
6
LINUX_SRC_DIR:=/usr/src/linux-headers-$(shell uname -r)
6
7
VERBOSE:=0
7
8
8
- rtmouse .ko: rtmouse .c rtmouse .h
9
+ $(MODULE) .ko: $(MODULE)_main .c $(MODULE)_dev.c $(MODULE)_spi.c $(MODULE)_i2c.c $(MODULE)_gpio.c $(MODULE) .h
9
10
make -C $(LINUX_SRC_DIR) M=$(shell pwd) V=$(VERBOSE) modules
10
11
11
12
clean:
12
13
make -C $(LINUX_SRC_DIR) M=$(shell pwd) V=$(VERBOSE) clean
13
14
14
- install: rtmouse .ko
15
+ install: $(MODULE) .ko
15
16
cp ../../50-rtmouse.rules /etc/udev/rules.d/
16
17
17
18
uninstall:
Original file line number Diff line number Diff line change 1
1
MODULE:= rtmouse
2
2
obj-m:= $(MODULE).o
3
+ $(MODULE)-y:= $(MODULE)_main.o $(MODULE)_dev.o $(MODULE)_spi.o $(MODULE)_i2c.o $(MODULE)_gpio.o
3
4
clean-files:= *.o *.ko *.mod.[co] *~
4
5
5
6
LINUX_SRC_DIR:=/usr/src/linux
6
7
VERBOSE:=0
7
8
8
- rtmouse .ko: rtmouse .c rtmouse .h
9
+ $(MODULE) .ko: $(MODULE)_main .c $(MODULE)_dev.c $(MODULE)_spi.c $(MODULE)_i2c.c $(MODULE)_gpio.c $(MODULE) .h
9
10
make -C $(LINUX_SRC_DIR) M=$(shell pwd) V=$(VERBOSE) modules
10
11
11
12
clean:
You can’t perform that action at this time.
0 commit comments