coverity: Improve source file coverage for coverity builds

Also, updated the exclusion list appropriately.

Signed-off-by: Madhukar Pappireddy <madhukar.pappireddy@arm.com>
Change-Id: I0a0c266ffdba6b21406ba580e46a1f2923e95725
diff --git a/script/tf-coverity/coverity_tf_conf.py b/script/tf-coverity/coverity_tf_conf.py
index 66e1de9..3f13bc5 100644
--- a/script/tf-coverity/coverity_tf_conf.py
+++ b/script/tf-coverity/coverity_tf_conf.py
@@ -16,18 +16,28 @@
 #   to be excluded.
 exclude_paths = [
     ("drivers/arm/tzc/tzc_common_private.c", "File included, actually indirectly analyzed"),
+    ("drivers/arm/tzc/tzc_dmc500.c", "Only used by deprecated SGM platforms"),
     ("drivers/marvell/comphy/phy-comphy-3700.c", "File is actually analyzed. False positive"),
     ("drivers/marvell/comphy/phy-comphy-cp110.c", "File is actually analyzed. False positive"),
     ("drivers/marvell/gwin.c", "Not used by any upstream marvell platform"),
     ("drivers/marvell/mochi/ap807_setup.c", "Not used by any upstream marvell platform"),
-    ("drivers/renesas/rcar/ddr/ddr_b/boot_init_dram_config.c",
-     "It is used as a header file and is included in boot_init_dram.c .Since it is not explicitly compiled, such file cannot be converted into an instrumented binary for further analysis"),
-    ("drivers/renesas/rzg/ddr/ddr_b/boot_init_dram_config.c",
+    ("drivers/renesas/common/ddr/ddr_b/boot_init_dram_config.c",
      "It is used as a header file and is included in boot_init_dram.c .Since it is not explicitly compiled, such file cannot be converted into an instrumented binary for further analysis"),
     ("drivers/auth/cryptocell/713/.*", "There is no dummy library to support 713 for now. This can be removed once we have this library in place"),
     ("drivers/scmi-msg/power_domain.c", "Not used by any upstream platform"),
 
     ("plat/arm/board/fvp/fconf/fconf_nt_config_getter.c", "Not currently used. Future functionality"),
+    ("plat/arm/board/sgm775/sgm775_err.c", "sgm775 deprecated"),
+    ("plat/arm/board/sgm775/sgm775_trusted_boot.c", "sgm775 deprecated"),
+    ("plat/arm/common/arm_tzc_dmc500.c", "Only used by deprecated SGM platforms"),
+    ("plat/arm/css/sgm/sgm_bl1_setup.c", "Only used by deprecated SGM platforms"),
+    ("plat/arm/css/sgm/sgm_bl31_setup.c", "Only used by deprecated SGM platforms"),
+    ("plat/arm/css/sgm/sgm_interconnect.c", "Only used by deprecated SGM platforms"),
+    ("plat/arm/css/sgm/sgm_mmap_config.c", "Only used by deprecated SGM platforms"),
+    ("plat/arm/css/sgm/sgm_plat_config.c", "Only used by deprecated SGM platforms"),
+    ("plat/arm/css/sgm/sgm_security.c", "Only used by deprecated SGM platforms"),
+    ("plat/arm/css/sgm/sgm_topology.c", "Only used by deprecated SGM platforms"),
+    ("plat/arm/css/sgm/tsp/sgm_tsp_setup.c", "Only used by deprecated SGM platforms"),
     ("plat/marvell/armada/a8k/common/plat_bl1_setup.c", "Not used by any upstream marvell platform"),
     ("plat/mediatek/common/custom/oem_svc.c", "Used only by mt6795 which is unsupported platform"),
     ("plat/mediatek/mt6795/.*", "This platform fails to build and is not supported by mediatek"),
@@ -78,46 +88,13 @@
 
     # Temporarily exclude the following files such that tf-coverity job can be
     # reinstated. Appropriate build commands to compile these files should be
-    # added to tf-cov-make script after v2.5 release
-    ("drivers/arm/tzc/tzc_dmc500.c", "Temporarily excluded"),
-    ("drivers/renesas/common/ddr/ddr_b/boot_init_dram_config.c", "Temporarily excluded"),
+    # added to tf-cov-make script after v2.6 release
     ("drivers/renesas/rzg/pfc/G2E/pfc_init_g2e.c", "Temporarily excluded"),
     ("drivers/renesas/rzg/pfc/G2H/pfc_init_g2h.c", "Temporarily excluded"),
     ("drivers/renesas/rzg/pfc/G2N/pfc_init_g2n.c", "Temporarily excluded"),
     ("drivers/renesas/rzg/qos/G2E/qos_init_g2e_v10.c", "Temporarily excluded"),
     ("drivers/renesas/rzg/qos/G2H/qos_init_g2h_v30.c", "Temporarily excluded"),
     ("drivers/renesas/rzg/qos/G2N/qos_init_g2n_v10.c", "Temporarily excluded"),
-    ("plat/arm/board/sgm775/sgm775_err.c", "Temporarily excluded"),
-    ("plat/arm/board/sgm775/sgm775_trusted_boot.c", "Temporarily excluded"),
-    ("plat/arm/common/arm_tzc_dmc500.c", "Temporarily excluded"),
-    ("plat/arm/css/sgm/sgm_bl1_setup.c", "Temporarily excluded"),
-    ("plat/arm/css/sgm/sgm_bl31_setup.c", "Temporarily excluded"),
-    ("plat/arm/css/sgm/sgm_interconnect.c", "Temporarily excluded"),
-    ("plat/arm/css/sgm/sgm_mmap_config.c", "Temporarily excluded"),
-    ("plat/arm/css/sgm/sgm_plat_config.c", "Temporarily excluded"),
-    ("plat/arm/css/sgm/sgm_security.c", "Temporarily excluded"),
-    ("plat/arm/css/sgm/sgm_topology.c", "Temporarily excluded"),
-    ("plat/arm/css/sgm/tsp/sgm_tsp_setup.c", "Temporarily excluded"),
-    ("plat/brcm/board/stingray/driver/usb.c", "Temporarily excluded"),
-    ("plat/brcm/board/stingray/driver/usb_phy.c", "Temporarily excluded"),
-    ("plat/imx/imx8m/imx8mm/imx8mm_bl2_el3_setup.c", "Temporarily excluded"),
-    ("plat/imx/imx8m/imx8mm/imx8mm_bl2_mem_params_desc.c", "Temporarily excluded"),
-    ("plat/imx/imx8m/imx8mm/imx8mm_image_load.c", "Temporarily excluded"),
-    ("plat/imx/imx8m/imx8mm/imx8mm_io_storage.c", "Temporarily excluded"),
-    ("plat/imx/imx8m/imx8mm/imx8mm_trusted_boot.c", "Temporarily excluded"),
-    ("plat/marvell/armada/a3k/a3700/board/pm_src.c", "Temporarily excluded"),
-    ("plat/mediatek/mt8195/aarch64/platform_common.c", "Temporarily excluded"),
-    ("plat/mediatek/mt8195/bl31_plat_setup.c", "Temporarily excluded"),
-    ("plat/mediatek/mt8195/drivers/dp/mt_dp.c", "Temporarily excluded"),
-    ("plat/mediatek/mt8195/drivers/gpio/mtgpio.c", "Temporarily excluded"),
-    ("plat/mediatek/mt8195/drivers/mcdi/mt_cpu_pm.c", "Temporarily excluded"),
-    ("plat/mediatek/mt8195/drivers/mcdi/mt_cpu_pm_cpc.c", "Temporarily excluded"),
-    ("plat/mediatek/mt8195/drivers/mcdi/mt_mcdi.c", "Temporarily excluded"),
-    ("plat/mediatek/mt8195/drivers/pmic/pmic.c", "Temporarily excluded"),
-    ("plat/mediatek/mt8195/drivers/spmc/mtspmc.c", "Temporarily excluded"),
-    ("plat/mediatek/mt8195/plat_pm.c", "Temporarily excluded"),
-    ("plat/mediatek/mt8195/plat_sip_calls.c", "Temporarily excluded"),
-    ("plat/mediatek/mt8195/plat_topology.", "Temporarily excluded"),
 
     # Exclude the following files of imx8mq as this platform is dropped
     # from the CI. Put the files of this platform into a silent status.