diff options
author | Mate Toth-Pal <mate.toth-pal@arm.com> | 2019-02-20 16:23:00 +0100 |
---|---|---|
committer | Mate Toth-Pal <mate.toth-pal@arm.com> | 2019-07-09 11:49:20 +0200 |
commit | d3c7766b4703c9eeb8e5271c42dae29d188ebfe0 (patch) | |
tree | 977a5b1e3e83b4c82320ec6b8a8e7e9e65ecd0df /configs | |
parent | 9aae21d20461bd1e9252ccea8c5ffde6ef9e1415 (diff) | |
download | trusted-firmware-m-d3c7766b4703c9eeb8e5271c42dae29d188ebfe0.tar.gz |
Test: Enable CoreTest config on Muscas and AN524
Add abstraction for platform features that are used by the core tests.
This makes possible that platforms that do not support certain platform
features can mock the platform behaviour.
Detailed changes:
* Enable Core tests in MUSCA_A, MUSCA_B1 and AN524 platforms
* Add tfm_plat_test.h enumerating the test interface expected from
platform implementations by the Core Tests
* Move platform features used by Core tests to the platform directory
on MPS2 platforms
* Mock platform features used by Core tests in the platform directory
on MUSCA_A, MUSCA_B1 and AN524 platforms
* Link MT25QL device driver structure to TFM_SP_STORAGE partition so
that SST init can run in isolation level 3
Change-Id: I7385f34e364b8be330cf214b8f148affaa76613d
Signed-off-by: Mate Toth-Pal <mate.toth-pal@arm.com>
Diffstat (limited to 'configs')
-rw-r--r-- | configs/ConfigCoreIPC.cmake | 2 | ||||
-rw-r--r-- | configs/ConfigCoreTest.cmake | 6 |
2 files changed, 7 insertions, 1 deletions
diff --git a/configs/ConfigCoreIPC.cmake b/configs/ConfigCoreIPC.cmake index 69103c6eb9..bd1e5c3a62 100644 --- a/configs/ConfigCoreIPC.cmake +++ b/configs/ConfigCoreIPC.cmake @@ -33,7 +33,7 @@ endif() #various project specific settings (e.g. what files to build, macro #definitions) based on these. set (REGRESSION False) -set (CORE_TEST False) +set (CORE_TEST True) set (CORE_IPC True) set (PSA_API_TEST False) diff --git a/configs/ConfigCoreTest.cmake b/configs/ConfigCoreTest.cmake index eed11d2dc7..49f3cc3114 100644 --- a/configs/ConfigCoreTest.cmake +++ b/configs/ConfigCoreTest.cmake @@ -19,6 +19,12 @@ elseif(${TARGET_PLATFORM} STREQUAL "AN521") set(PLATFORM_CMAKE_FILE "${TFM_ROOT_DIR}/platform/ext/Mps2AN521.cmake") elseif(${TARGET_PLATFORM} STREQUAL "AN519") set (PLATFORM_CMAKE_FILE "${TFM_ROOT_DIR}/platform/ext/Mps2AN519.cmake") +elseif(${TARGET_PLATFORM} STREQUAL "AN524") + set (PLATFORM_CMAKE_FILE "${TFM_ROOT_DIR}/platform/ext/Mps3AN524.cmake") +elseif(${TARGET_PLATFORM} STREQUAL "MUSCA_A") + set(PLATFORM_CMAKE_FILE "${TFM_ROOT_DIR}/platform/ext/musca_a.cmake") +elseif(${TARGET_PLATFORM} STREQUAL "MUSCA_B1") + set(PLATFORM_CMAKE_FILE "${TFM_ROOT_DIR}/platform/ext/musca_b1.cmake") else() message(FATAL_ERROR "ERROR: Target \"${TARGET_PLATFORM}\" is not supported.") endif() |