coverity: include rest of the platforms
Include the rest of current tf-m platforms. This change yielded to
coverity source code coverage to 46% [1].
[1] https://ci.staging.trustedfirmware.org/job/lsandov1-tf-m-coverity/28/console
Signed-off-by: Leonardo Sandoval <leonardo.sandoval@linaro.org>
Change-Id: I882782e90af8a6c6b414437796eac212cffcb618
diff --git a/script/tf-coverity/cov-makefile b/script/tf-coverity/cov-makefile
index 5fb30e9..04316f5 100644
--- a/script/tf-coverity/cov-makefile
+++ b/script/tf-coverity/cov-makefile
@@ -6,23 +6,23 @@
# $(call build-platform,platform,toolchain)
define build-platform
- mkdir $(BASE_DIR)/$(tf_m)/cmake_build
- cd $(BASE_DIR)/$(tf_m)/cmake_build && \
- cmake .. -DTFM_PLATFORM=$1 -DTFM_TOOLCHAIN_FILE=../$2
-
- cd $(BASE_DIR)/$(tf_m)/cmake_build && \
- make install
+ cd $(BASE_DIR)/$(tf_m) && \
+ cmake -S . -B cmake_build_$1 -DTFM_PLATFORM=$1 -DTFM_TOOLCHAIN_FILE=$2 && \
+ cmake --build cmake_build_$1 -- install
endef
BASE_DIR ?= .
-# TODO: include other platforms to increase coverity coverage
-gnuarm_target_platforms := mps2/an521
+target_platforms := cypress/psoc64 \
+ mps2/an519 mps2/an521 \
+ mps3/an524 \
+ musca_a musca_b1/sse_200 musca_s1
+
tf_m := trusted-firmware-m
-all: $(gnuarm_target_platforms)
+all: $(target_platforms)
-$(gnuarm_target_platforms): check msg
+$(target_platforms): check msg
$(call build-platform,$@,toolchain_GNUARM.cmake)
.phony: check
diff --git a/script/tf-coverity/coverity_tf_conf.py b/script/tf-coverity/coverity_tf_conf.py
index ecb692a..2edc324 100644
--- a/script/tf-coverity/coverity_tf_conf.py
+++ b/script/tf-coverity/coverity_tf_conf.py
@@ -14,4 +14,7 @@
# describing the file(s) to exclude.
# - description aims at providing the reason why the files are expected
# to be excluded.
-exclude_paths = []
+exclude_paths = [
+ ("platform/ext/.*", "3rd party libraries will not be fixed")
+ ("lib/ext/.*", "3rd party libraries will not be fixed"),
+]