Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FMC Software Support
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Projects
FMC Software Support
Commits
2eaf5fa1
Commit
2eaf5fa1
authored
1 year ago
by
Vaibhav Gupta
Browse files
Options
Downloads
Patches
Plain Diff
Makefiles: Add cppcheck and flawfinder
Signed-off-by:
Vaibhav Gupta
<
vaibhav.gupta@cern.ch
>
parent
a657a13d
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
Makefile
+3
-3
3 additions, 3 deletions
Makefile
drivers/fmc/Makefile
+10
-1
10 additions, 1 deletion
drivers/fmc/Makefile
tools/Makefile
+4
-0
4 additions, 0 deletions
tools/Makefile
tools/lib/Makefile
+9
-1
9 additions, 1 deletion
tools/lib/Makefile
with
26 additions
and
5 deletions
Makefile
+
3
−
3
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)
This diff is collapsed.
Click to expand it.
drivers/fmc/Makefile
+
10
−
1
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
This diff is collapsed.
Click to expand it.
tools/Makefile
+
4
−
0
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
This diff is collapsed.
Click to expand it.
tools/lib/Makefile
+
9
−
1
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
This diff is collapsed.
Click to expand it.
Preview
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!
Save comment
Cancel
Please
register
or
sign in
to comment