Build: Update app_broker build
Update app_broker build to make dependencies more stable.
- Sort NS library folder structure.
Move common library folders out of app_broker. Place them under lib
folder. Move CMSIS to lib/ext.
It is expected that users can re-use those library in other NS
integration with TF-M.
- NS libraries depend on each other and therefore the dependencies are
complicated. Build those NS libraries under app_broker to more
easily sort out dependencies. Remove build files from library
folders.
Signed-off-by: David Hu <david.hu@arm.com>
Change-Id: I8c2ff7bbec6c03738b9cbe49fd286a5147293ba5
diff --git a/lib/log/CMakeLists.txt b/lib/log/CMakeLists.txt
new file mode 100644
index 0000000..a843b41
--- /dev/null
+++ b/lib/log/CMakeLists.txt
@@ -0,0 +1,25 @@
+#-------------------------------------------------------------------------------
+# Copyright (c) 2020-2022, Arm Limited. All rights reserved.
+#
+# SPDX-License-Identifier: BSD-3-Clause
+#
+#-------------------------------------------------------------------------------
+
+############################# Ns Log ###########################################
+
+add_library(tfm_log INTERFACE)
+
+target_sources(tfm_log
+ INTERFACE
+ tfm_log_raw.c
+)
+
+target_include_directories(tfm_log
+ INTERFACE
+ .
+)
+
+target_link_libraries(tfm_log
+ INTERFACE
+ platform_ns
+)