Commit e2e3172b authored by Pavel Pisa's avatar Pavel Pisa
Browse files

driver: adjust Kbuild and Makefile to build driver with Linux kernel style headers.



Signed-off-by: Pavel Pisa's avatarPavel Pisa <pisa@cmp.felk.cvut.cz>
parent 4550a604
Pipeline #36347 passed with stage
in 15 seconds
obj-m := ctucanfd.o
ctucanfd-y := ctucanfd_base.o ctucanfd_hw.o
ctucanfd-y := ctucanfd_base.o
ifneq ($(CONFIG_PCI),)
obj-m += ctucanfd_pci.o
endif
......
......@@ -37,7 +37,7 @@ ifneq ($(INSTALL_DIR),)
cp ctucanfd_platform.ko $(INSTALL_DIR)/
endif
CTUCANFD_SOURCES = ctucanfd_base.c ctucanfd_hw.c ctucanfd_frame.h ctucanfd_hw.h ctucanfd_regs.h ctucanfd_platform.c ctucanfd_pci.c
CTUCANFD_SOURCES = ctucanfd_base.c ctucanfd_kframe.h ctucanfd_kregs.h ctucanfd_platform.c ctucanfd_pci.c
checkpatch:
cd $(KDIR) && (! $(KDIR)/source/scripts/checkpatch.pl -f --no-tree $(CTUCANFD_SOURCES:%=$(PWD)/%) | grep ERROR:)
......
../ctucanfd_frame.h
\ No newline at end of file
../ctucanfd_hw.c
\ No newline at end of file
../ctucanfd_hw.h
\ No newline at end of file
../ctucanfd_kframe.h
\ No newline at end of file
../ctucanfd_kregs.h
\ No newline at end of file
../ctucanfd_regs.h
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment