Interface: TF-M specific log API
Provide a TF-M specific log API. Put the source in 'interface' folder
since this file are referenced by multiple components, such as bl2,
non-secure application and secure firmware. The sources are included
into SPRTL building and as part of SPRTL.
The fundamental API is 'tfm_log_printf' which supports basic formats
like 'sdicpuxX' and '%' as the format leading and escape.
Change-Id: I6d0f89ab16c3e00f8e71129a06f89dc206733733
Signed-off-by: Mingyang Sun <mingyang.sun@arm.com>
diff --git a/secure_fw/lib/sprt/CMakeLists.inc b/secure_fw/lib/sprt/CMakeLists.inc
index 20aa1d6..05412d4 100644
--- a/secure_fw/lib/sprt/CMakeLists.inc
+++ b/secure_fw/lib/sprt/CMakeLists.inc
@@ -26,8 +26,12 @@
set (LIBSPRT_C_SRC
"${LIBSPRT_DIR}/tfm_libsprt_c_memcpy.c"
- "${LIBSPRT_DIR}/tfm_libsprt_c_memmove.c")
+ "${LIBSPRT_DIR}/tfm_libsprt_c_memmove.c"
+ "${TFM_ROOT_DIR}/interface/src/log/tfm_log_raw.c")
#Append all our source files to global lists.
list(APPEND ALL_SRC_C_S ${LIBSPRT_C_SRC})
unset(LIBSPRT_C_SRC)
+
+#Setting include directories
+embedded_include_directories(PATH ${TFM_ROOT_DIR}/interface/include ABSOLUTE)