Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
FMC ADC 100M 14b 4cha
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
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
FMC ADC 100M 14b 4cha
Commits
b469bcce
Commit
b469bcce
authored
Nov 18, 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
f9b2ede6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
2 deletions
+9
-2
Makefile
software/Makefile
+4
-1
Makefile
software/kernel/Makefile
+1
-1
Makefile
software/tools/Makefile
+4
-0
No files found.
software/Makefile
View file @
b469bcce
...
...
@@ -6,7 +6,7 @@ all: kernel tools
DIRS
=
kernel tools
.PHONY
:
all clean modules install modules_install $(DIRS)
.PHONY
:
all clean modules install modules_install
cppcheck
$(DIRS)
install modules_install
:
...
...
@@ -20,3 +20,6 @@ modules_install: TARGET = modules_install
$(DIRS)
:
$(MAKE)
-C
$@
$(TARGET)
cppcheck
:
@
$(MAKE)
-C
tools
$@
software/kernel/Makefile
View file @
b469bcce
...
...
@@ -65,4 +65,4 @@ clean:
Module.markers modules.order
cppcheck
:
$(CPPCHECK)
-q
-I
.
-I
$(ZIO_ABS)
/include
-I
$(FMC_BUS_ABS)
/
--enable
=
all
*
.c
*
.h
$(CPPCHECK)
-q
-I
.
-I
$(ZIO_ABS)
/include
-I
$(FMC_BUS_ABS)
/
--
suppress
=
missingIncludeSystem
--
enable
=
all
*
.c
*
.h
software/tools/Makefile
View file @
b469bcce
...
...
@@ -14,6 +14,7 @@ GIT_VERSION := $(shell git describe --dirty --long --tags)
CFLAGS
+=
-I
../kernel
-Wno-trigraphs
-Wall
-Werror
-ggdb
-O2
$(EXTRACFLAGS)
CFLAGS
+=
-DGIT_VERSION
=
"
\"
$(GIT_VERSION)
\"
"
CPPCHECK
?=
cppcheck
CC
?=
$(CROSS_COMPILE)
gcc
progs
:=
fau-trg-config
...
...
@@ -37,3 +38,6 @@ install:
# we need this as we are out of the kernel
%
:
%.c
$(CC)
$(CFLAGS)
$^
-o
$@
cppcheck
:
$(CPPCHECK)
-q
-I
.
--suppress
=
missingIncludeSystem
--enable
=
all
*
.c
*
.h
--error-exitcode
=
1
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