SPM: Add build config for IPC-only FF-M APIs

Use macro "CONFIG_TFM_SPM_BACKEND_IPC" to control FF-M APIs
and SPM APIs that are only used by IPC backend:
- psa_get()
- psa_reply()
- spm_get_handle_by_signal()

Signed-off-by: Mingyang Sun <mingyang.sun@arm.com>
Change-Id: I86a7679a325e72ee9eaa7c323cb6965a27975ae3
diff --git a/secure_fw/spm/include/ffm/psa_api.h b/secure_fw/spm/include/ffm/psa_api.h
index 97ab352..ddd7769 100644
--- a/secure_fw/spm/include/ffm/psa_api.h
+++ b/secure_fw/spm/include/ffm/psa_api.h
@@ -140,6 +140,8 @@
 psa_signal_t tfm_spm_partition_psa_wait(psa_signal_t signal_mask,
                                         uint32_t timeout);
 
+/* This API is only used in IPC backend. */
+#if CONFIG_TFM_SPM_BACKEND_IPC == 1
 /**
  * \brief Function body of \ref psa_get.
  *
@@ -160,6 +162,7 @@
  *                                reference.
  */
 psa_status_t tfm_spm_partition_psa_get(psa_signal_t signal, psa_msg_t *msg);
+#endif
 
 /**
  * \brief Function body of \ref psa_read.