Raef Coles | 9ec67e6 | 2020-07-10 09:40:35 +0100 | [diff] [blame] | 1 | #------------------------------------------------------------------------------- |
Summer Qin | 7c0d8d3 | 2021-12-17 15:43:08 +0800 | [diff] [blame] | 2 | # Copyright (c) 2020-2022, Arm Limited. All rights reserved. |
Raef Coles | 9ec67e6 | 2020-07-10 09:40:35 +0100 | [diff] [blame] | 3 | # |
| 4 | # SPDX-License-Identifier: BSD-3-Clause |
| 5 | # |
| 6 | #------------------------------------------------------------------------------- |
| 7 | |
Anton Komlev | 28f566b | 2022-10-27 17:40:37 +0100 | [diff] [blame] | 8 | set(TFM_PROFILE profile_medium CACHE STRING "Configuration profile") |
Raef Coles | 9ec67e6 | 2020-07-10 09:40:35 +0100 | [diff] [blame] | 9 | |
Anton Komlev | 28f566b | 2022-10-27 17:40:37 +0100 | [diff] [blame] | 10 | ############################ SPM CONFIGURATION ################################ |
Raef Coles | 9ec67e6 | 2020-07-10 09:40:35 +0100 | [diff] [blame] | 11 | |
Anton Komlev | 28f566b | 2022-10-27 17:40:37 +0100 | [diff] [blame] | 12 | set(TFM_ISOLATION_LEVEL 2 CACHE STRING "Isolation level") |
| 13 | set(CONFIG_TFM_SPM_BACKEND "IPC" CACHE STRING "The SPM backend [IPC, SFN]") |
Raef Coles | 9ec67e6 | 2020-07-10 09:40:35 +0100 | [diff] [blame] | 14 | |
Anton Komlev | 28f566b | 2022-10-27 17:40:37 +0100 | [diff] [blame] | 15 | ############################ PARTITION CONFIGURATION ########################## |
Raef Coles | 9ec67e6 | 2020-07-10 09:40:35 +0100 | [diff] [blame] | 16 | |
Anton Komlev | 28f566b | 2022-10-27 17:40:37 +0100 | [diff] [blame] | 17 | set(TFM_PARTITION_CRYPTO ON CACHE BOOL "Enable Crypto partition") |
| 18 | set(TFM_PARTITION_INTERNAL_TRUSTED_STORAGE ON CACHE BOOL "Enable Internal Trusted Storage partition") |
| 19 | set(TFM_PARTITION_PLATFORM ON CACHE BOOL "Enable the TF-M Platform partition") |
| 20 | set(TFM_PARTITION_PROTECTED_STORAGE ON CACHE BOOL "Enable Protected Storage partition") |
| 21 | set(TFM_PARTITION_INITIAL_ATTESTATION ON CACHE BOOL "Enable Initial Attestation partition") |
David Hu | 86a9523 | 2022-11-21 10:20:08 +0800 | [diff] [blame^] | 22 | set(SYMMETRIC_INITIAL_ATTESTATION OFF CACHE BOOL "Use symmetric crypto for inital attestation") |
Anton Komlev | 28f566b | 2022-10-27 17:40:37 +0100 | [diff] [blame] | 23 | set(TFM_PARTITION_FIRMWARE_UPDATE OFF CACHE BOOL "Enable firmware update partition") |
| 24 | |
| 25 | ################################## Advanced options ############################# |
| 26 | |
David Hu | 86a9523 | 2022-11-21 10:20:08 +0800 | [diff] [blame^] | 27 | set(ITS_BUF_SIZE 32 CACHE STRING "Size of the ITS internal data transfer buffer (defaults to ITS_MAX_ASSET_SIZE if not set)") |
Anton Komlev | 28f566b | 2022-10-27 17:40:37 +0100 | [diff] [blame] | 28 | set(PS_CRYPTO_AEAD_ALG PSA_ALG_CCM CACHE STRING "The AEAD algorithm to use for authenticated encryption in protected storage") |
| 29 | set(CRYPTO_ASYM_ENCRYPT_MODULE_DISABLED ON CACHE BOOL "Disable PSA Crypto asymmetric key encryption module") |
David Hu | f40be93 | 2021-05-12 15:52:16 +0800 | [diff] [blame] | 30 | |
Raef Coles | 9ec67e6 | 2020-07-10 09:40:35 +0100 | [diff] [blame] | 31 | ################################## Dependencies ################################ |
| 32 | |
Summer Qin | 7c0d8d3 | 2021-12-17 15:43:08 +0800 | [diff] [blame] | 33 | set(TFM_MBEDCRYPTO_CONFIG_PATH "${CMAKE_SOURCE_DIR}/lib/ext/mbedcrypto/mbedcrypto_config/tfm_mbedcrypto_config_profile_medium.h" CACHE PATH "Config to use for Mbed Crypto") |
| 34 | set(TFM_MBEDCRYPTO_PSA_CRYPTO_CONFIG_PATH "${CMAKE_SOURCE_DIR}/lib/ext/mbedcrypto/mbedcrypto_config/crypto_config_profile_medium.h" CACHE PATH "Config to use psa crypto setting for Mbed Crypto.") |