Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
FMC DEL 1ns 4cha
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
2
Issues
2
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 DEL 1ns 4cha
Commits
20c8e332
Commit
20c8e332
authored
Nov 14, 2022
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bld: add flawfinder
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
0f5308b1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
4 deletions
+16
-4
Makefile
software/Makefile
+1
-1
Makefile
software/kernel/Makefile
+5
-1
Makefile
software/lib/Makefile
+5
-1
Makefile
software/tools/Makefile
+5
-1
No files found.
software/Makefile
View file @
20c8e332
...
...
@@ -29,5 +29,5 @@ modules_install: TARGET = modules_install
$(DIRS)
:
$(MAKE)
-C
$@
$(TARGET)
cppcheck
:
flawfinder
cppcheck
:
for
d
in
$(DIRS)
;
do
$(MAKE)
-C
$$
d
$@
||
exit
1
;
done
software/kernel/Makefile
View file @
20c8e332
...
...
@@ -9,6 +9,7 @@ REPO_PARENT ?= $(shell pwd)/../../..
-include
$(REPO_PARENT)/parent_common.mk
CPPCHECK
?=
cppcheck
FLAWFINDER
?=
flawfinder
DKMS
?=
0
CURDIR
:=
$(
shell
/bin/pwd
)
KVERSION
?=
$(
shell
uname
-r
)
...
...
@@ -59,4 +60,7 @@ install modules_install: modules
cppcheck
:
$(CPPCHECK)
-q
-I
.
-I
$(ZIO_ABS)
/include
-I
$(FMC_BUS_ABS)
/
--enable
=
all
*
.c
*
.h
.PHONY
:
all cppcheck clean clean install modules modules_install
flawfinder
:
$(FLAWFINDER)
-SQDC
--error-level
=
3 .
.PHONY
:
all cppcheck clean clean flawfinder install modules modules_install
software/lib/Makefile
View file @
20c8e332
...
...
@@ -44,6 +44,7 @@ LDFLAGS = -L. -lfdelay
DESTDIR
?=
/usr/local
CPPCHECK
?=
cppcheck
FLAWFINDER
?=
flawfinder
modules all
:
lib
...
...
@@ -80,6 +81,9 @@ modules_install:
cppcheck
:
$(CPPCHECK)
-q
-I
.
-I
../kernel
-I
$(ZIO_ABS)
/include
--suppress
=
missingIncludeSystem
--enable
=
warning,style,information,missingInclude
*
.c
*
.h
flawfinder
:
$(FLAWFINDER)
-SQDC
--error-level
=
6 .
-include
.depend
.PHONY
:
cppcheck
.PHONY
:
cppcheck
flawfinder
software/tools/Makefile
View file @
20c8e332
...
...
@@ -31,6 +31,7 @@ progs += fmc-fdelay-pulse
progs
+=
fmc-fdelay-status
CPPCHECK
?=
cppcheck
FLAWFINDER
?=
flawfinder
# we are not in the kernel, so we need to piggy-back on "make modules"
all modules
:
$(progs) fmc-fdelay-calibration
...
...
@@ -55,4 +56,7 @@ install:
cppcheck
:
$(CPPCHECK)
-q
-I
.
-I
../kernel
-I
$(LIBFD)
--suppress
=
missingIncludeSystem
--enable
=
all
*
.c
*
.h
.PHONY
:
cppcheck
flawfinder
:
$(FLAWFINDER)
-SQDC
--error-level
=
5 .
.PHONY
:
cppcheck 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