coverity: Improve NXP source file coverage using new build features

By leveraging several build flags, we are able to compile additional
source files for offline coverity scan analysis.

Signed-off-by: Madhukar Pappireddy <madhukar.pappireddy@arm.com>
Change-Id: Ic5e9af61fbce4e0c8aea2986535e196053ba56ed
diff --git a/script/tf-coverity/coverity_tf_conf.py b/script/tf-coverity/coverity_tf_conf.py
index d7c6f4d..c472cef 100644
--- a/script/tf-coverity/coverity_tf_conf.py
+++ b/script/tf-coverity/coverity_tf_conf.py
@@ -55,14 +55,7 @@
     # The following block is excluding files specific to NXP platforms that
     # cannot be compiled with any build flags at this moment due to external
     # dependencies
-    ("drivers/nxp/auth/csf_hdr_parser/cot.c", "Cannot be built due to external dependencies"),
-    ("drivers/nxp/auth/csf_hdr_parser/csf_hdr_parser.c", "Cannot be built due to external dependencies"),
-    ("drivers/nxp/auth/csf_hdr_parser/plat_img_parser.c", "Cannot be built due to external dependencies"),
-    ("drivers/nxp/auth/tbbr/tbbr_cot.c", "Cannot be built due to external dependencies"),
     ("drivers/nxp/console/console_16550.c", "Cannot be built due to external dependencies"),
-    ("drivers/nxp/crypto/caam/src/auth/hash.c", "Cannot be built due to external dependencies"),
-    ("drivers/nxp/crypto/caam/src/auth/nxp_crypto.c", "Cannot be built due to external dependencies"),
-    ("drivers/nxp/crypto/caam/src/auth/rsa.c", "Cannot be built due to external dependencies"),
     ("drivers/nxp/csu/csu.c", "Cannot be built due to external dependencies"),
     ("drivers/nxp/ddr/fsl-mmdc/fsl_mmdc.c", "Cannot be built due to external dependencies"),
     ("drivers/nxp/ddr/phy-gen1/phy.c", "Cannot be built due to external dependencies"),
@@ -70,14 +63,9 @@
     ("drivers/nxp/gpio/nxp_gpio.c", "Cannot be built due to external dependencies"),
     ("drivers/nxp/interconnect/ls_cci.c", "Cannot be built due to external dependencies"),
     ("drivers/nxp/qspi/qspi.c", "Cannot be built due to external dependencies"),
-    ("drivers/nxp/sd/sd_mmc.c", "Cannot be built due to external dependencies"),
-    ("drivers/nxp/sec_mon/snvs.c", "Cannot be built due to external dependencies"),
     ("drivers/nxp/sfp/fuse_prov.c", "Cannot be built due to external dependencies"),
     ("drivers/nxp/sfp/sfp.c", "Cannot be built due to external dependencies"),
     ("plat/nxp/common/fip_handler/fuse_fip/fuse_io_storage.c", "Cannot be built due to external dependencies"),
-    ("plat/nxp/common/setup/ls_stack_protector.c", "Cannot be built due to external dependencies"),
-    ("plat/nxp/common/tbbr/csf_tbbr.c", "Cannot be built due to external dependencies"),
-    ("plat/nxp/common/tbbr/x509_tbbr.c", "Cannot be built due to external dependencies"),
 
     ("lib/compiler-rt/.*", "3rd party libraries will not be fixed"),
     ("lib/libfdt/.*", "3rd party libraries will not be fixed"),
diff --git a/script/tf-coverity/tf-cov-make b/script/tf-coverity/tf-cov-make
index 287cf6f..5d5a925 100755
--- a/script/tf-coverity/tf-cov-make
+++ b/script/tf-coverity/tf-cov-make
@@ -333,7 +333,19 @@
 # Platforms for NXP Layerscape
 make PLAT=lx2160aqds $(common_flags) all
 make PLAT=lx2160ardb $(common_flags) all
-make PLAT=lx2162aqds $(common_flags) all
+
+#CSF Based CoT:
+clean_build PLAT=lx2162aqds $(common_flags) BOOT_MODE=flexspi_nor SPD=opteed \
+    TRUSTED_BOARD_BOOT=1 CST_DIR=$(pwd) DDR_PHY_BIN_PATH=$(pwd)
+
+#X509 Based CoT
+clean_build PLAT=lx2162aqds $(common_flags) BOOT_MODE=flexspi_nor SPD=opteed \
+    TRUSTED_BOARD_BOOT=1 CST_DIR=$(pwd) GENERATE_COT=1 \
+    MBEDTLS_DIR=$(pwd)/mbedtls
+
+#BOOT_MODE=emmc and Stack protector
+clean_build PLAT=lx2162aqds $(common_flags) BOOT_MODE=emmc SPD=opteed \
+    TRUSTED_BOARD_BOOT=1 CST_DIR=$(pwd) ENABLE_STACK_PROTECTOR=strong
 
 # Platforms from Intel
 make PLAT=stratix10 $(common_flags) all