Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
Z
ZIO
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
1
Merge Requests
1
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
ZIO
Commits
f3228ca9
Commit
f3228ca9
authored
Sep 04, 2023
by
Vaibhav Gupta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Makefiles: Add flawfinder
Signed-off-by:
Vaibhav Gupta
<
vaibhav.gupta@cern.ch
>
parent
aa448c79
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
4 deletions
+12
-4
Makefile
Makefile
+2
-2
Makefile
drivers/zio/Makefile
+5
-1
Makefile
tools/Makefile
+5
-1
No files found.
Makefile
View file @
f3228ca9
...
...
@@ -26,7 +26,7 @@ $(DIRS):
modules modules_install
:
$(MAKE)
-C
drivers/zio
$@
cppcheck
:
flawfinder
cppcheck
:
for
d
in
$(C_DIRS)
;
do
$(MAKE)
-C
$$
d
$@
||
exit
1
;
done
.PHONY
:
all clean modules modules_install cppcheck
.PHONY
:
all clean modules modules_install cppcheck
flawfinder
drivers/zio/Makefile
View file @
f3228ca9
...
...
@@ -8,6 +8,7 @@ REPO_PARENT ?= $(shell pwd)/../../..
-include
$(REPO_PARENT)/parent_common.mk
CPPCHECK
?=
cppcheck
FLAWFINDER
?=
flawfinder
KVERSION
?=
$(
shell
uname
-r
)
KERNELSRC
?=
/lib/modules/
$(KVERSION)
/build
...
...
@@ -40,4 +41,7 @@ cppcheck:
$(MAKE)
-C
triggers
$@
$(MAKE)
-C
buffers
$@
.PHONY
:
all clean coccicheck cppcheck modules modules_install
flawfinder
:
$(FLAWFINDER)
-SQDC
--error-level
=
5 .
.PHONY
:
all clean coccicheck cppcheck flawfinder modules modules_install
tools/Makefile
View file @
f3228ca9
...
...
@@ -19,6 +19,7 @@ CFLAGS += -DGIT_VERSION=\"$(GIT_VERSION)\"
CC
?=
$(CROSS_COMPILE)
gcc
CPPCHECK
?=
cppcheck
FLAWFINDER
?=
flawfinder
progs
:=
zio-dump
progs
+=
zio-cat-file
...
...
@@ -36,4 +37,7 @@ clean:
cppcheck
:
$(CPPCHECK)
-q
$(INCLUDE)
--suppress
=
missingIncludeSystem
--enable
=
all
*
.c
*
.h
.PHONY
:
cppcheck
flawfinder
:
$(FLAWFINDER)
-SQDC
--error-level
=
4 .
.PHONY
:
flawfinder 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