diff options
author | shejia01 <jianliang.shen@arm.com> | 2021-06-03 13:31:51 +0800 |
---|---|---|
committer | Jianliang Shen <jianliang.shen@arm.com> | 2021-09-14 10:22:14 +0800 |
commit | a45152b3a15d5abd167e3335ec53d5fc96c9fb05 (patch) | |
tree | 982c59e4ee075bae06f53f4f3a9c91aa58f7cc87 | |
parent | 186a1295e1e96b3fcc86d80d1cb4c175ee4e3771 (diff) |
Build: Clean tf-m-tests configurations in TF-M repo [TF-M repo]
Move tf-m-tests specific configurations from TF-M to tf-m-tests.
Signed-off-by: Jianliang Shen <jianliang.shen@arm.com>
Change-Id: I89db28ce892c8e3f04d79cbf59e1946e1e61823d
-rw-r--r-- | config/config_default.cmake | 23 | ||||
-rw-r--r-- | config/profile/profile_large.cmake | 13 | ||||
-rw-r--r-- | config/profile/profile_medium.cmake | 13 | ||||
-rw-r--r-- | config/profile/profile_small.cmake | 14 |
4 files changed, 0 insertions, 63 deletions
diff --git a/config/config_default.cmake b/config/config_default.cmake index a0046b0f8..b21f938fb 100644 --- a/config/config_default.cmake +++ b/config/config_default.cmake @@ -149,29 +149,6 @@ set(FORWARD_PROT_MSG OFF CACHE BOOL "Whether to set(TFM_PARTITION_FIRMWARE_UPDATE OFF CACHE BOOL "Enable firmware update partition") set(TFM_FWU_BOOTLOADER_LIB "mcuboot" CACHE STRING "Bootloader configure file for Firmware Update partition") -################################## Tests ####################################### - -set(TFM_INTERACTIVE_TEST OFF CACHE BOOL "Enable interactive tests") -set(TFM_PERIPH_ACCESS_TEST OFF CACHE BOOL "Enable peripheral access tests") - -set(PS_TEST_NV_COUNTERS ON CACHE BOOL "Use the test NV counters to test Protected Storage rollback scenarios") - -set(TFM_CRYPTO_TEST_ALG_CBC ON CACHE BOOL "Test CBC cryptography mode") -set(TFM_CRYPTO_TEST_ALG_CCM ON CACHE BOOL "Test CCM cryptography mode") -set(TFM_CRYPTO_TEST_ALG_CFB ON CACHE BOOL "Test CFB cryptography mode") -set(TFM_CRYPTO_TEST_ALG_ECB ON CACHE BOOL "Test ECB cryptography mode") -set(TFM_CRYPTO_TEST_ALG_CTR ON CACHE BOOL "Test CTR cryptography mode") -set(TFM_CRYPTO_TEST_ALG_OFB ON CACHE BOOL "Test OFB cryptography mode") -set(TFM_CRYPTO_TEST_ALG_GCM ON CACHE BOOL "Test GCM cryptography mode") -set(TFM_CRYPTO_TEST_ALG_SHA_512 ON CACHE BOOL "Test SHA-512 cryptography algorithm") -set(TFM_CRYPTO_TEST_HKDF ON CACHE BOOL "Test the HKDF key derivation algorithm") -set(TFM_CRYPTO_TEST_ECDH ON CACHE BOOL "Test the ECDH key agreement algorithm") -set(TFM_FWU_TEST_REQUEST_REBOOT OFF CACHE BOOL "Test psa_fwu_request_reboot") -set(TFM_FWU_TEST_WRITE_WITH_NULL OFF CACHE BOOL "Test psa_fwu_write with data block NULL") -set(TFM_FWU_TEST_QUERY_WITH_NULL OFF CACHE BOOL "Test psa_fwu_query with info NULL") - -set(ATTEST_TEST_GET_PUBLIC_KEY OFF CACHE BOOL "Require to retrieve Initial Attestation public in runtime for test purpose") - ################################## Dependencies ################################ set(MBEDCRYPTO_PATH "DOWNLOAD" CACHE PATH "Path to Mbed Crypto (or DOWNLOAD to fetch automatically") diff --git a/config/profile/profile_large.cmake b/config/profile/profile_large.cmake index 471b9e5e3..d3a95a667 100644 --- a/config/profile/profile_large.cmake +++ b/config/profile/profile_large.cmake @@ -27,19 +27,6 @@ set(TFM_PARTITION_PLATFORM ON CACHE BOOL "Enable Plat ####################### Fault Injection Hardening ############################## set(MCUBOOT_FIH_PROFILE MEDIUM CACHE STRING "Fault injection hardening profile [OFF, LOW, MEDIUM, HIGH]") -################################## Tests ####################################### - -# Specify the Crypto test cases -set(TFM_CRYPTO_TEST_ALG_CBC ON CACHE BOOL "Test CBC cryptography mode") -set(TFM_CRYPTO_TEST_ALG_CFB OFF CACHE BOOL "Test CFB cryptography mode") -set(TFM_CRYPTO_TEST_ALG_ECB OFF CACHE BOOL "Test ECB cryptography mode") -set(TFM_CRYPTO_TEST_ALG_CTR OFF CACHE BOOL "Test CTR cryptography mode") -set(TFM_CRYPTO_TEST_ALG_OFB OFF CACHE BOOL "Test OFB cryptography mode") -set(TFM_CRYPTO_TEST_ALG_GCM ON CACHE BOOL "Test GCM cryptography mode") -set(TFM_CRYPTO_TEST_ALG_SHA_512 ON CACHE BOOL "Test SHA-512 cryptography algorithm") -set(TFM_CRYPTO_TEST_HKDF ON CACHE BOOL "Test the HKDF key derivation algorithm") -set(TFM_CRYPTO_TEST_ECDH ON CACHE BOOL "Test the ECDH key agreement algorithm") - ################################## Dependencies ################################ set(TFM_MBEDCRYPTO_CONFIG_PATH "${CMAKE_SOURCE_DIR}/lib/ext/mbedcrypto/mbedcrypto_config/tfm_mbedcrypto_config_profile_large.h" CACHE PATH "Config to use for Mbed Crypto") diff --git a/config/profile/profile_medium.cmake b/config/profile/profile_medium.cmake index 35b47e02f..8b1015298 100644 --- a/config/profile/profile_medium.cmake +++ b/config/profile/profile_medium.cmake @@ -19,19 +19,6 @@ set(CRYPTO_ASYM_ENCRYPT_MODULE_DISABLED ON CACHE BOOL "Disable PSA set(TFM_PARTITION_AUDIT_LOG OFF CACHE BOOL "Enable Audit Log partition") -################################## Tests ####################################### - -# TFM_CRYPTO_TEST_ALG_CCM is the only test mode left enabled, to go with the -# reduced crypto config -set(TFM_CRYPTO_TEST_ALG_CBC OFF CACHE BOOL "Test CBC cryptography mode") -set(TFM_CRYPTO_TEST_ALG_CFB OFF CACHE BOOL "Test CFB cryptography mode") -set(TFM_CRYPTO_TEST_ALG_ECB OFF CACHE BOOL "Test ECB cryptography mode") -set(TFM_CRYPTO_TEST_ALG_CTR OFF CACHE BOOL "Test CTR cryptography mode") -set(TFM_CRYPTO_TEST_ALG_OFB OFF CACHE BOOL "Test OFB cryptography mode") -set(TFM_CRYPTO_TEST_ALG_GCM OFF CACHE BOOL "Test GCM cryptography mode") -set(TFM_CRYPTO_TEST_ALG_SHA_512 OFF CACHE BOOL "Test SHA-512 cryptography algorithm") -set(TFM_CRYPTO_TEST_HKDF OFF CACHE BOOL "Test the HKDF key derivation algorithm") -set(TFM_CRYPTO_TEST_ECDH ON CACHE BOOL "Test the ECDH key agreement algorithm") ################################## Dependencies ################################ diff --git a/config/profile/profile_small.cmake b/config/profile/profile_small.cmake index 554dfe0ab..5d71eec4a 100644 --- a/config/profile/profile_small.cmake +++ b/config/profile/profile_small.cmake @@ -36,20 +36,6 @@ set(TFM_PARTITION_FIRMWARE_UPDATE OFF CACHE BOOL "Enable firm set(TFM_PARTITION_AUDIT_LOG OFF CACHE BOOL "Enable Audit Log partition") -################################## Tests ####################################### - -# TFM_CRYPTO_TEST_ALG_CCM is the only test mode left enabled, to go with the -# reduced crypto config -set(TFM_CRYPTO_TEST_ALG_CBC OFF CACHE BOOL "Test CBC cryptography mode") -set(TFM_CRYPTO_TEST_ALG_CFB OFF CACHE BOOL "Test CFB cryptography mode") -set(TFM_CRYPTO_TEST_ALG_ECB OFF CACHE BOOL "Test ECB cryptography mode") -set(TFM_CRYPTO_TEST_ALG_CTR OFF CACHE BOOL "Test CTR cryptography mode") -set(TFM_CRYPTO_TEST_ALG_OFB OFF CACHE BOOL "Test OFB cryptography mode") -set(TFM_CRYPTO_TEST_ALG_GCM OFF CACHE BOOL "Test GCM cryptography mode") -set(TFM_CRYPTO_TEST_ALG_SHA_512 OFF CACHE BOOL "Test SHA-512 cryptography algorithm") -set(TFM_CRYPTO_TEST_HKDF OFF CACHE BOOL "Test the HKDF key derivation algorithm") -set(TFM_CRYPTO_TEST_ECDH OFF CACHE BOOL "Test the ECDH key agreement algorithm") - ################################## Dependencies ################################ set(TFM_MBEDCRYPTO_CONFIG_PATH "${CMAKE_SOURCE_DIR}/lib/ext/mbedcrypto/mbedcrypto_config/tfm_mbedcrypto_config_profile_small.h" CACHE PATH "Config to use for Mbed Crypto") |