Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Simple PCIe FMC carrier SPEC
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
50
Issues
50
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Simple PCIe FMC carrier SPEC
Commits
1bfe5b06
Commit
1bfe5b06
authored
Nov 09, 2020
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bld: add cppcheck
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
98f1bbb8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
3 deletions
+10
-3
Makefile
software/Makefile
+3
-1
Makefile
software/kernel/Makefile
+6
-1
Makefile
software/tools/Makefile
+1
-1
No files found.
software/Makefile
View file @
1bfe5b06
...
...
@@ -3,7 +3,7 @@
DIRS
=
kernel tools
.PHONY
:
all clean modules install modules_install coccicheck $(DIRS)
.PHONY
:
all clean modules install modules_install coccicheck
cppcheck
$(DIRS)
all clean
:
$(DIRS)
install modules_install coccicheck modules
:
kernel
...
...
@@ -13,6 +13,8 @@ modules: TARGET = modules
coccicheck
:
TARGET = coccicheck
install
:
TARGET = install
modules_install
:
TARGET = modules_install
cppcheck
:
$(MAKE)
-C
tools
$@
$(DIRS)
:
$(MAKE)
-C
$@
$(ENV_VAR)
$(TARGET)
software/kernel/Makefile
View file @
1bfe5b06
...
...
@@ -57,10 +57,11 @@ SPI_ABS ?= $(abspath $(SPI))
VERSION
=
$(
shell
git describe
--dirty
--long
--tags
)
CHEBY
?=
/usr/bin/cheby
CPPCHECK
?=
cppcheck
all
:
modules
.PHONY
:
all modules clean help install modules_install coccicheck spec-core-fpga.h
.PHONY
:
all modules clean help install modules_install coccicheck spec-core-fpga.h
cppcheck
spec-core-fpga.h
:
ifeq
($(DKMS),
0)
...
...
@@ -83,3 +84,7 @@ modules help coccicheck modules_install clean: spec-core-fpga.h
I2C_ABS
=
$(I2C_ABS)
\
SPI_ABS
=
$(SPI_ABS)
\
$@
INCLUDE
:=
-I
./
cppcheck
:
$(CPPCHECK)
-q
$(INCLUDE)
--suppress
=
missingIncludeSystem
--enable
=
all
*
.c
*
.h
--error-exitcode
=
1
software/tools/Makefile
View file @
1bfe5b06
...
...
@@ -33,4 +33,4 @@ install:
cppcheck
:
$(CPPCHECK)
-q
$(INCLUDE)
--suppress
=
missingIncludeSystem
--enable
=
all
*
.c
*
.h
--error-exitcode
=
1
.PHONY
=
cppcheck
.PHONY
:
cppcheck
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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