Commit f3228ca9 authored by Vaibhav Gupta's avatar Vaibhav Gupta

Makefiles: Add flawfinder

Signed-off-by: 's avatarVaibhav Gupta <vaibhav.gupta@cern.ch>
parent aa448c79
...@@ -26,7 +26,7 @@ $(DIRS): ...@@ -26,7 +26,7 @@ $(DIRS):
modules modules_install: modules modules_install:
$(MAKE) -C drivers/zio $@ $(MAKE) -C drivers/zio $@
cppcheck: flawfinder cppcheck:
for d in $(C_DIRS); do $(MAKE) -C $$d $@ || exit 1; done 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
...@@ -8,6 +8,7 @@ REPO_PARENT ?= $(shell pwd)/../../.. ...@@ -8,6 +8,7 @@ REPO_PARENT ?= $(shell pwd)/../../..
-include $(REPO_PARENT)/parent_common.mk -include $(REPO_PARENT)/parent_common.mk
CPPCHECK ?= cppcheck CPPCHECK ?= cppcheck
FLAWFINDER ?= flawfinder
KVERSION ?= $(shell uname -r) KVERSION ?= $(shell uname -r)
KERNELSRC ?= /lib/modules/$(KVERSION)/build KERNELSRC ?= /lib/modules/$(KVERSION)/build
...@@ -40,4 +41,7 @@ cppcheck: ...@@ -40,4 +41,7 @@ cppcheck:
$(MAKE) -C triggers $@ $(MAKE) -C triggers $@
$(MAKE) -C buffers $@ $(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
...@@ -19,6 +19,7 @@ CFLAGS += -DGIT_VERSION=\"$(GIT_VERSION)\" ...@@ -19,6 +19,7 @@ CFLAGS += -DGIT_VERSION=\"$(GIT_VERSION)\"
CC ?= $(CROSS_COMPILE)gcc CC ?= $(CROSS_COMPILE)gcc
CPPCHECK ?= cppcheck CPPCHECK ?= cppcheck
FLAWFINDER ?= flawfinder
progs := zio-dump progs := zio-dump
progs += zio-cat-file progs += zio-cat-file
...@@ -36,4 +37,7 @@ clean: ...@@ -36,4 +37,7 @@ clean:
cppcheck: cppcheck:
$(CPPCHECK) -q $(INCLUDE) --suppress=missingIncludeSystem --enable=all *.c *.h $(CPPCHECK) -q $(INCLUDE) --suppress=missingIncludeSystem --enable=all *.c *.h
.PHONY: cppcheck flawfinder:
$(FLAWFINDER) -SQDC --error-level=4 .
.PHONY: flawfinder cppcheck
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