summaryrefslogtreecommitdiffstats
path: root/makefile
diff options
context:
space:
mode:
authorLuis Fernandez <Luis.Fernandez@ibm.com>2019-09-18 10:34:25 -0500
committerDaniel M Crowell <dcrowell@us.ibm.com>2019-09-18 23:14:10 -0500
commit08501bc6578ac2ba40cc803ac2449828ee6b1550 (patch)
tree5d668501903cf3de999c41b0ea7af817ecf95d6a /makefile
parentbfe56382ff15dd94196a45f9619e8b629740d5fa (diff)
downloadtalos-hostboot-08501bc6578ac2ba40cc803ac2449828ee6b1550.tar.gz
talos-hostboot-08501bc6578ac2ba40cc803ac2449828ee6b1550.zip
Patch For: Implement Static Analysis with cppcheck
CPPCHECK commands fail in machines that do not use bin/sh. Wrap commands inside an if-statement to only be read when User explicitly run the tool. Change-Id: Ifad56b0978c8190efa033203f661daf9259a4d43 RTC: 201451 Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/83938 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'makefile')
-rw-r--r--makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/makefile b/makefile
index 2863a0ef4..b1ab6e467 100644
--- a/makefile
+++ b/makefile
@@ -92,6 +92,7 @@ cppcheck:
${BUILDCPPCHECK}
export CXX_CHECK="$(CPPCHECK) $(filter -D%, $(CXXFLAGS)) $(INCFLAGS)" && \
export C_CHECK="$(CPPCHECK) $(filter -D%, $(CFLAGS)) $(INCFLAGS)" && \
+ export DOCPPCHECK=1 && \
${MAKE}
.PHONY: gcda_clean
OpenPOWER on IntegriCloud