Core: add PSA client API functions

NS client infrastructure for PSA API created in
conformance with v8M secure gateway call restrictions
and TF-M rules.

Note:
- S SVC handlers TBD
- Buffer read/write funtions TBD
- Sanity checks in S SVC handlers TBD

Change-Id: Ia2947c28247af699d337754db2f22e2e25235c41
Signed-off-by: Miklos Balint <miklos.balint@arm.com>
diff --git a/CommonConfig.cmake b/CommonConfig.cmake
index 964a51c..858126a 100644
--- a/CommonConfig.cmake
+++ b/CommonConfig.cmake
@@ -103,6 +103,8 @@
 set (SERVICES_TEST_ENABLED OFF)
 set (TEST_FRAMEWORK_S  OFF)
 set (TEST_FRAMEWORK_NS OFF)
+set (TFM_PSA_API ON)
+set (TFM_LEGACY_API ON)
 
 if(${TARGET_PLATFORM} STREQUAL "AN521" OR ${TARGET_PLATFORM} STREQUAL "AN519")
 	set (REFERENCE_PLATFORM ON)
@@ -115,6 +117,14 @@
 	set(SERVICES_TEST_ENABLED ON)
 endif()
 
+if (TFM_PSA_API)
+	add_definitions(-DTFM_PSA_API)
+endif()
+
+if (TFM_LEGACY_API)
+	add_definitions(-DTFM_LEGACY_API)
+endif()
+
 if (SERVICES_TEST_ENABLED)
 	set(SERVICE_TEST_S ON)
 	set(SERVICE_TEST_NS ON)