Crypto: Add IPC compatibility

This patch introduces compatibility in the Crypto
service with the IPC infrastructure of TF-M.

Change-Id: I5a095780e1f2bd489c83cfbca138ca6dd0bfe9ba
Signed-off-by: Antonio de Angelis <antonio.deangelis@arm.com>
diff --git a/CommonConfig.cmake b/CommonConfig.cmake
index eb49a41..9815d94 100644
--- a/CommonConfig.cmake
+++ b/CommonConfig.cmake
@@ -160,7 +160,12 @@
 if (CORE_TEST_IPC)
 	add_definitions(-DCORE_TEST_IPC)
 	set(TFM_PARTITION_TEST_SECURE_SERVICES ON)
-	set(TEST_FRAMEWORK_NS ON)
+	# If PSA_API_TEST is enabled, don't run TF-M test framework from NS
+	if (PSA_API_TEST)
+	  set(TEST_FRAMEWORK_NS OFF)
+	else()
+	  set(TEST_FRAMEWORK_NS ON)
+	endif()
 endif()
 
 if (SERVICE_TEST_S)