diff options
author | Kevin Peng <kevin.peng@arm.com> | 2021-07-07 13:49:36 +0800 |
---|---|---|
committer | Anton Komlev <Anton.Komlev@arm.com> | 2021-07-16 11:42:58 +0200 |
commit | 15a5ce218b8b08f731aa057fac32f060193f1278 (patch) | |
tree | 71059e54f30667233e64c37aec8965b1f9f21fab /platform | |
parent | cc8ae0010f285196ade947afd169559dba550352 (diff) |
Platform: Enable IRQ testing on some platforms by default
This patch enables the following IRQ tests by default so that
CI could cover the testing:
- FLIH test on AN521
- SLIH test on Musca-B1
Because FLIH and SLIH test can not be enabled at the same time,
let users choose which to enable on other platforms.
Note: Currently, FLIH test is only supported on AN519 and AN521.
Change-Id: I2c40b46841ac54a3c8bc5e788c9184047626db4a
Signed-off-by: Kevin Peng <kevin.peng@arm.com>
Diffstat (limited to 'platform')
-rw-r--r-- | platform/ext/target/arm/mps2/an521/config.cmake | 4 | ||||
-rw-r--r-- | platform/ext/target/arm/musca_b1/sse_200/config.cmake | 8 |
2 files changed, 12 insertions, 0 deletions
diff --git a/platform/ext/target/arm/mps2/an521/config.cmake b/platform/ext/target/arm/mps2/an521/config.cmake index b0dbc04c5..dda34156b 100644 --- a/platform/ext/target/arm/mps2/an521/config.cmake +++ b/platform/ext/target/arm/mps2/an521/config.cmake @@ -10,4 +10,8 @@ set(TFM_EXTRA_GENERATED_FILE_LIST_PATH ${CMAKE_CURRENT_SOURCE_DIR}/platform/ext if(TFM_PSA_API) set(TFM_MBEDCRYPTO_PLATFORM_EXTRA_CONFIG_PATH ${CMAKE_CURRENT_LIST_DIR}/mbedtls_an521_conf.h CACHE FILEPATH "Config to append to standard Mbed Crypto config, used by platforms to configure feature support") set(PLATFORM_DUMMY_NV_SEED TRUE CACHE BOOL "Use dummy NV seed implementation. Should not be used in production.") + if (NOT TFM_ENABLE_SLIH_TEST) + # FLIH and SLIH testing can not be enabled at the same time + set(TFM_ENABLE_FLIH_TEST ON CACHE BOOL "Enable FLIH testing") + endif() endif() diff --git a/platform/ext/target/arm/musca_b1/sse_200/config.cmake b/platform/ext/target/arm/musca_b1/sse_200/config.cmake index adc628a2d..236708500 100644 --- a/platform/ext/target/arm/musca_b1/sse_200/config.cmake +++ b/platform/ext/target/arm/musca_b1/sse_200/config.cmake @@ -42,3 +42,11 @@ endif() set(TFM_EXTRA_GENERATED_FILE_LIST_PATH ${CMAKE_CURRENT_SOURCE_DIR}/platform/ext/target/arm/musca_b1/generated_file_list.yaml CACHE PATH "Path to extra generated file list. Appended to stardard TFM generated file list." FORCE) set(PSA_API_TEST_TARGET "musca_b1" CACHE STRING "Target to use when building the PSA API tests") + +if(TFM_PSA_API) + if (TFM_ENABLE_FLIH_TEST) + message(FATAL_ERROR "FLIH testing has not been supported!") + endif() + + set(TFM_ENABLE_SLIH_TEST ON CACHE BOOL "Enable SLIH testing") +endif() |