Commit 447a8d2a authored by Vaibhav Gupta's avatar Vaibhav Gupta

software: kernel: Add flawfinder

Signed-off-by: 's avatarVaibhav Gupta <vaibhav.gupta@cern.ch>
parent 9a190948
......@@ -26,7 +26,7 @@ flawfinder:
image:
name: gitlab-registry.cern.ch/coht/common-containers/static-analysis:latest
script:
- make -C software/tools flawfinder
- make -C software flawfinder
kernel_build_cc7:
extends: .kernel_build_cc7
......
......@@ -8,7 +8,9 @@
all: kernel tools
DIRS =kernel tools
C_DIRS = kernel tools
DIRS = $(C_DIRS)
.PHONY: all clean modules install modules_install cppcheck $(DIRS)
......@@ -25,5 +27,5 @@ modules_install: TARGET = modules_install
$(DIRS):
$(MAKE) -C $@ $(TARGET)
cppcheck:
@$(MAKE) -C tools $@
cppcheck flawfinder:
for d in $(DIRS); do $(MAKE) -C $$d $@ || exit 1; done
......@@ -67,4 +67,7 @@ clean modules help modules_install coccicheck:
cppcheck:
$(CPPCHECK) -q -I. -I$(ZIO_ABS)/include -I$(FMC_BUS_ABS)/ --suppress=missingIncludeSystem --enable=all *.c *.h
flawfinder:
$(FLAWFINDER) -SQDC --error-level=3 .
.PHONY: all coccicheck clean cppcheck modules modules_install
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment