Core: Separate library code from spm_api.c file

- Moves library-model-only APIs into another file spm_api_func.c.
- Separates spm code into 3 parts: for library model (func), IPC model
  (ipc) and common.

Change-Id: I35bc43c21415e89c1f353a4c798aa3d8f69ec168
Signed-off-by: Mingyang Sun <mingyang.sun@arm.com>
diff --git a/secure_fw/spm/CMakeLists.inc b/secure_fw/spm/CMakeLists.inc
index 696feb4..e7c30e3 100644
--- a/secure_fw/spm/CMakeLists.inc
+++ b/secure_fw/spm/CMakeLists.inc
@@ -28,6 +28,8 @@
 
 if(TFM_PSA_API)
 	list(APPEND SS_SPM_C_SRC "${SS_SPM_DIR}/spm_api_ipc.c")
+else()
+	list(APPEND SS_SPM_C_SRC "${SS_SPM_DIR}/spm_api_func.c")
 endif()
 
 #Append all our source files to global lists.