Build: Enable linking with PSA FF compliance tests in NS and S ELF

This change modifies the build system to support linking
the PSA FF compliance test static libraries at secure and
non-secure side both.

Signed-off-by: Jaykumar Pitambarbhai Patel <jaykumar.pitambarbhaipatel@arm.com>
Change-Id: I5ba925752afbe9f5a15f8df4ae12e44e712435a9
diff --git a/CommonConfig.cmake b/CommonConfig.cmake
index 7550ae3..c34ee5a 100644
--- a/CommonConfig.cmake
+++ b/CommonConfig.cmake
@@ -324,6 +324,15 @@
 	if (NOT DEFINED PSA_API_TEST_ATTESTATION)
 		set(PSA_API_TEST_ATTESTATION OFF)
 	endif()
+	if (NOT DEFINED PSA_API_TEST_IPC)
+		set(PSA_API_TEST_IPC OFF)
+	endif()
+
+	#Set PSA API compliance test build path
+	if(NOT DEFINED PSA_API_TEST_BUILD_PATH)
+		#If not specified, assume it's the default build folder checked out at the same level of TFM root dir
+		set(PSA_API_TEST_BUILD_PATH "${TFM_ROOT_DIR}/../psa-arch-tests/api-tests/BUILD")
+	endif()
 endif()
 
 # The config for enable secure context management in TF-M