Build: Add SPM log support for platforms

As SPM log functions have implemented, add SPM log support for
all the platforms.

Change-Id: I1cdd014446b4060fbaf1f9053f7787faa48fd1fc
Signed-off-by: Shawn Shan <Shawn.Shan@arm.com>
diff --git a/platform/ext/psoc64.cmake b/platform/ext/psoc64.cmake
index c47dea3..244a3c2 100644
--- a/platform/ext/psoc64.cmake
+++ b/platform/ext/psoc64.cmake
@@ -87,6 +87,8 @@
 embedded_include_directories(PATH "${TFM_ROOT_DIR}/secure_fw/spm/arch" ABSOLUTE)
 embedded_include_directories(PATH "${TFM_ROOT_DIR}/secure_fw/spm/model_ipc/include" ABSOLUTE)
 
+add_definitions(-DTFM_SPM_LOG_LEVEL=1)
+
 #Gather all source files we need.
 list(APPEND ALL_SRC_C "${PLATFORM_DIR}/target/cypress/psoc64/mailbox/platform_multicore.c")
 list(APPEND ALL_SRC_C_NS "${PLATFORM_DIR}/target/cypress/psoc64/mailbox/platform_ns_mailbox.c")
@@ -122,7 +124,8 @@
   elseif(SECURE_UART1)
     message(FATAL_ERROR "Configuration SECURE_UART1 TRUE is invalid for this target!")
   endif()
-  list(APPEND ALL_SRC_C "${PLATFORM_DIR}/common/uart_stdout.c")
+  list(APPEND ALL_SRC_C "${PLATFORM_DIR}/common/uart_stdout.c"
+                        "${PLATFORM_DIR}/common/tfm_hal_spm_logdev_peripheral.c")
   embedded_include_directories(PATH "${PLATFORM_DIR}/common" ABSOLUTE)
   set(BUILD_NATIVE_DRIVERS true)
   set(BUILD_CMSIS_DRIVERS true)