Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
canbus
CTU CAN FD IP Core
Commits
e2e3172b
Commit
e2e3172b
authored
Jul 01, 2021
by
Pavel Pisa
Browse files
driver: adjust Kbuild and Makefile to build driver with Linux kernel style headers.
Signed-off-by:
Pavel Pisa
<
pisa@cmp.felk.cvut.cz
>
parent
4550a604
Pipeline
#36347
passed with stage
in 15 seconds
Changes
8
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
driver/linux/Kbuild
View file @
e2e3172b
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
...
...
driver/linux/Makefile
View file @
e2e3172b
...
...
@@ -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_
k
frame.h ctucanfd_
k
regs.h ctucanfd_platform.c ctucanfd_pci.c
checkpatch
:
cd
$(KDIR)
&&
(!
$(KDIR)
/source/scripts/checkpatch.pl
-f
--no-tree
$
(
CTUCANFD_SOURCES:%
=
$(PWD)
/%
)
|
grep
ERROR:
)
...
...
driver/linux/ctucanfd_frame.h
deleted
120000 → 0
View file @
4550a604
..
/
ctucanfd_frame
.
h
\ No newline at end of file
driver/linux/ctucanfd_hw.c
deleted
120000 → 0
View file @
4550a604
..
/
ctucanfd_hw
.
c
\ No newline at end of file
driver/linux/ctucanfd_hw.h
deleted
120000 → 0
View file @
4550a604
..
/
ctucanfd_hw
.
h
\ No newline at end of file
driver/linux/ctucanfd_kframe.h
0 → 120000
View file @
e2e3172b
..
/
ctucanfd_kframe
.
h
\ No newline at end of file
driver/linux/ctucanfd_kregs.h
0 → 120000
View file @
e2e3172b
..
/
ctucanfd_kregs
.
h
\ No newline at end of file
driver/linux/ctucanfd_regs.h
deleted
120000 → 0
View file @
4550a604
..
/
ctucanfd_regs
.
h
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment