Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
FMC Software Support
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Projects
FMC Software Support
Commits
2eaf5fa1
Commit
2eaf5fa1
authored
Aug 31, 2023
by
Vaibhav Gupta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Makefiles: Add cppcheck and flawfinder
Signed-off-by:
Vaibhav Gupta
<
vaibhav.gupta@cern.ch
>
parent
a657a13d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
26 additions
and
5 deletions
+26
-5
Makefile
Makefile
+3
-3
Makefile
drivers/fmc/Makefile
+10
-1
Makefile
tools/Makefile
+4
-0
Makefile
tools/lib/Makefile
+9
-1
No files found.
Makefile
View file @
2eaf5fa1
...
...
@@ -13,7 +13,7 @@ all clean cleanall install: $(DIRS)
modules modules_install
:
@
$(MAKE)
-C
drivers/fmc/
$@
cppcheck
:
@
$(MAKE)
-C
tools
$@
flawfinder
cppcheck
:
for
d
in
$(C_DIRS)
;
do
$(MAKE)
-C
$$
d
$@
||
exit
1
;
done
.PHONY
:
sources srpm modules modules_install clean all cppcheck tools
.PHONY
:
modules modules_install clean all cppcheck flawfinder $(DIRS)
drivers/fmc/Makefile
View file @
2eaf5fa1
...
...
@@ -12,6 +12,9 @@ KERNELSRC ?= /lib/modules/$(shell uname -r)/build
export
CONFIG_FMC
=
m
CPPCHECK
?=
cppcheck
FLAWFINDER
?=
flawfinder
all
:
modules
clean modules help modules_install coccicheck
:
...
...
@@ -21,4 +24,10 @@ cleanall: clean
install
:
modules_install
.PHONY
:
all modules clean help install modules_install
cppcheck
:
$(CPPCHECK)
-q
-I
.
-I
$(KERNELSRC)
/include
--enable
=
all
*
.c
*
.h
flawfinder
:
$(FLAWFINDER)
-SQDC
--error-level
=
5 .
.PHONY
:
all modules clean help install modules_install cppcheck flawfinder
tools/Makefile
View file @
2eaf5fa1
...
...
@@ -22,6 +22,7 @@ LDFLAGS = -L$(LIB)
LDLIBS
=
-lfmc
CPPCHECK
?=
cppcheck
FLAWFINDER
?=
flawfinder
all
:
$(TOOLS)
...
...
@@ -43,4 +44,7 @@ cppcheck:
@
$(MAKE)
-C
$(LIB)
$@
$(CPPCHECK)
-q
-I
.
-I
$(LIB)
--suppress
=
missingIncludeSystem
--enable
=
all
*
.c
*
.h
--error-exitcode
=
1
flawfinder
:
$(FLAWFINDER)
-SQDC
--error-level
=
6 .
.PHONY
:
cppcheck clean cleanall install all
tools/lib/Makefile
View file @
2eaf5fa1
...
...
@@ -23,7 +23,9 @@ CFLAGS += -DGIT_VERSION="\"$(GIT_VERSION)\""
CFLAGS
+=
$(EXTRACFLAGS)
DESTDIR
?=
/usr/local
CPPCHECK
?=
cppcheck
FLAWFINDER
?=
flawfinder
all
:
lib
...
...
@@ -61,4 +63,10 @@ cppcheck:
-include
.depend
.PHONY
:
cppcheck all lib clean clanall install modules_install
cppcheck
:
$(CPPCHECK)
-q
-I
.
--enable
=
all
*
.c
*
.h
flawfinder
:
$(FLAWFINDER)
-SQDC
--error-level
=
6 .
.PHONY
:
cppcheck all lib clean clanall install modules_install flawfinder
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