Kyle Swenson | d91dbe2 | 2022-04-17 09:18:52 -0600 | [diff] [blame] | 1 | # Makefile for the PSE class driver (and the LTC4266 device driver) |
| 2 | |
| 3 | ROOT?=$(abspath ../../../) |
| 4 | include $(ROOT)/Makefile.config |
| 5 | SYS_PATH = $(CPKERN) |
| 6 | DESTDIR = $(ROOT)/$(IMGDIR)/rootfs/lib/modules/extra/ |
| 7 | export PRODUCT |
| 8 | unexport CC CPP LD CFLAGS CPPFLAGS LDFLAGS AR RANLIB CPDEFINES |
| 9 | |
| 10 | default: install |
| 11 | |
| 12 | all: |
| 13 | $(MAKE) -C $(CPKERN) ARCH=$(ARCH) M=$(CURDIR) |
| 14 | |
| 15 | install: all |
| 16 | $(MAKE) -C $(CPKERN) M=$(CURDIR) INSTALL_MOD_PATH=$(ROOT)/$(IMGDIR)/rootfs ARCH=$(ARCH) KERNEL_VERSION="4.4" modules_install |
| 17 | |
| 18 | kernel-tags: |
| 19 | $(MAKE) -C $(CPKERN) tags |
| 20 | |
| 21 | tags: kernel-tags |
| 22 | ctags -R . |
| 23 | |
| 24 | clean: |
| 25 | $(MAKE) -C $(CPKERN) M=$(CURDIR) clean |
| 26 | |
| 27 | checkpatch: |
| 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 | |