aboutsummaryrefslogtreecommitdiff
path: root/platform/ext
diff options
context:
space:
mode:
authorKevin Peng <kevin.peng@arm.com>2021-07-16 11:35:05 +0800
committerAnton Komlev <Anton.Komlev@arm.com>2021-07-16 11:42:58 +0200
commitcc8ae0010f285196ade947afd169559dba550352 (patch)
treef2ad5ee73059cf2ec146628b6851488c6fb32301 /platform/ext
parent5c679362af4fff1f1b5a6ceffdaaf7b405a9280c (diff)
downloadtrusted-firmware-m-cc8ae0010f285196ade947afd169559dba550352.tar.gz
Platform: Musca-B1: Enable Test SLIH on isolation L2 & 3
This patch enables testing SLIH on isolation L2 & 3 by putting the timer driver needed by the ARoT test Partition to SPRT. This patch also change to build plat_test.c when either TEST_S or TEST_NS is enabled. plat_test.c is not part of Platform Partition but for test purpose. Change-Id: I639ec956ca09ad45454e0e730f832231e9ab6d32 Signed-off-by: Kevin Peng <kevin.peng@arm.com>
Diffstat (limited to 'platform/ext')
-rw-r--r--platform/ext/target/arm/musca_b1/sse_200/CMakeLists.txt11
1 files changed, 9 insertions, 2 deletions
diff --git a/platform/ext/target/arm/musca_b1/sse_200/CMakeLists.txt b/platform/ext/target/arm/musca_b1/sse_200/CMakeLists.txt
index 0b8d97d69a..c70a5954b1 100644
--- a/platform/ext/target/arm/musca_b1/sse_200/CMakeLists.txt
+++ b/platform/ext/target/arm/musca_b1/sse_200/CMakeLists.txt
@@ -114,9 +114,9 @@ target_sources(platform_s
target_cfg.c
Native_Driver/ppc_sse200_drv.c
Native_Driver/uart_pl011_drv.c
- Native_Driver/timer_cmsdk_drv.c
+ $<$<NOT:$<BOOL:${TFM_ENABLE_SLIH_TEST}>>:${CMAKE_CURRENT_SOURCE_DIR}/Native_Driver/timer_cmsdk_drv.c>
${CMAKE_SOURCE_DIR}/platform/ext/common/tfm_hal_isolation_mpu_v8m.c
- $<$<BOOL:${TFM_PARTITION_PLATFORM}>:${CMAKE_CURRENT_SOURCE_DIR}/plat_test.c>
+ $<$<OR:$<BOOL:${TEST_NS}>,$<BOOL:${TEST_S}>>:${CMAKE_CURRENT_SOURCE_DIR}/plat_test.c>
$<$<BOOL:${TFM_PARTITION_PLATFORM}>:${CMAKE_CURRENT_SOURCE_DIR}/services/src/tfm_platform_system.c>
$<$<BOOL:${FORWARD_PROT_MSG}>:${CMAKE_CURRENT_SOURCE_DIR}/mailbox/platform_multicore.c>
$<$<BOOL:${FORWARD_PROT_MSG}>:${CMAKE_CURRENT_SOURCE_DIR}/mailbox/platform_ns_mailbox.c>
@@ -128,6 +128,13 @@ target_compile_options(platform_s
${COMPILER_CMSE_FLAG}
)
+target_sources(tfm_sprt
+ PRIVATE
+ # The SLIH test Partition accesses the timer as ARoT Partitions.
+ # Put the driver to SPRT so that the SLIH tests can access it.
+ $<$<BOOL:${TFM_ENABLE_SLIH_TEST}>:${CMAKE_CURRENT_SOURCE_DIR}/Native_Driver/timer_cmsdk_drv.c>
+)
+
target_compile_definitions(platform_s
PUBLIC
$<$<BOOL:${FORWARD_PROT_MSG}>:FORWARD_PROT_MSG=${FORWARD_PROT_MSG}>