Tests: The "split build" adaptation
This code builds TEST_NS_ITS test using split build.
cd ./trusted-firmware-m
cmake -S . -B ../tf-m-tests/build-tfm -DTFM_PLATFORM=arm/mps2/an521
-DCONFIG_TFM_BUILD_SPLIT=ON
-DCMAKE_INSTALL_PREFIX=../tf-m-tests/build-tfm/api_ns
-DTFM_TOOLCHAINE=toolchain_GNUARM.cmake
-DTFM_PROFILE=profile_small
-DNS=OFF -DTEST_S=OFF -DPLATFORM_DEFAULT_IMAGE_SIGNING=ON
cmake --build build -- install
cd ../tf-m-tests/app_ns_test
cmake -S . -B build -DTEST_NS_ITS=OFF
-DCONFIG_SPE_PATH=../build-tfm/api_ns
cmake --build build -- tfm_app_binaries
Check the binary in ./build/tfm_s_ns_signed.bin
Signed-off-by: Anton Komlev <anton.komlev@arm.com>
Change-Id: Icaf38d844fe38d444b973776af2616d16c5439b1
diff --git a/log/CMakeLists.txt b/log/CMakeLists.txt
index 9860934..2ac6ceb 100644
--- a/log/CMakeLists.txt
+++ b/log/CMakeLists.txt
@@ -6,11 +6,11 @@
#-------------------------------------------------------------------------------
############################# Ns Log ###########################################
-add_library(tfm_log INTERFACE)
+add_library(tfm_log STATIC)
add_library(tfm_log_interface INTERFACE)
target_sources(tfm_log
- INTERFACE
+ PRIVATE
tfm_log_raw.c
)
@@ -23,4 +23,6 @@
INTERFACE
tfm_log_interface
platform_common_interface
+ PUBLIC
+ platform_ns
)