blob: 2aded0e93a93f243c7df1abf7587d397a44a2c88 [file] [log] [blame]
Kyle Swensond91dbe22022-04-17 09:18:52 -06001# Makefile for the PSE class driver (and the LTC4266 device driver)
2
3ROOT?=$(abspath ../../../)
4include $(ROOT)/Makefile.config
5SYS_PATH = $(CPKERN)
6DESTDIR = $(ROOT)/$(IMGDIR)/rootfs/lib/modules/extra/
7export PRODUCT
8unexport CC CPP LD CFLAGS CPPFLAGS LDFLAGS AR RANLIB CPDEFINES
9
10default: install
11
12all:
13 $(MAKE) -C $(CPKERN) ARCH=$(ARCH) M=$(CURDIR)
14
15install: all
16 $(MAKE) -C $(CPKERN) M=$(CURDIR) INSTALL_MOD_PATH=$(ROOT)/$(IMGDIR)/rootfs ARCH=$(ARCH) KERNEL_VERSION="4.4" modules_install
17
18kernel-tags:
19 $(MAKE) -C $(CPKERN) tags
20
21tags: kernel-tags
22 ctags -R .
23
24clean:
25 $(MAKE) -C $(CPKERN) M=$(CURDIR) clean
26
27checkpatch:
28 $(CPKERN)/scripts/checkpatch.pl --no-tree --no-signoff --file *.c *.h ltc4266/*.h ltc4266/*.c tps23880/*.h tps23880/*.c --ignore Long_Line --ignore Long_Line_Comment --show-types
29