blob: 2eeb2900cc2756327caf4b266d6478cc550b89db [file] [log] [blame]
Raef Coles9ec67e62020-07-10 09:40:35 +01001#-------------------------------------------------------------------------------
David Hu1feb4b12022-02-23 17:22:07 +08002# Copyright (c) 2020-2022, Arm Limited. All rights reserved.
Raef Coles9ec67e62020-07-10 09:40:35 +01003#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6#-------------------------------------------------------------------------------
7
Xinyu Zhanga2fab0e2022-10-24 15:37:46 +08008set(TFM_PROFILE profile_small CACHE STRING "Configuration profile")
9set(PROJECT_CONFIG_HEADER_FILE "${CMAKE_SOURCE_DIR}/config/profile/config_profile_small.h" CACHE FILEPATH "User defined header file for TF-M config")
Raef Coles9ec67e62020-07-10 09:40:35 +010010
Anton Komlev28f566b2022-10-27 17:40:37 +010011############################ SPM CONFIGURATION ################################
Raef Coles9ec67e62020-07-10 09:40:35 +010012
Anton Komlev28f566b2022-10-27 17:40:37 +010013set(TFM_ISOLATION_LEVEL 1 CACHE STRING "Isolation level")
Xinyu Zhanga2fab0e2022-10-24 15:37:46 +080014set(CONFIG_TFM_SPM_BACKEND "SFN" CACHE STRING "The SPM backend [IPC, SFN]")
Raef Coles9ec67e62020-07-10 09:40:35 +010015
Anton Komlev28f566b2022-10-27 17:40:37 +010016############################ PARTITION CONFIGURATION ##########################
Raef Coles9ec67e62020-07-10 09:40:35 +010017
Anton Komlev28f566b2022-10-27 17:40:37 +010018set(TFM_PARTITION_CRYPTO ON CACHE BOOL "Enable Crypto partition")
19set(TFM_PARTITION_INTERNAL_TRUSTED_STORAGE ON CACHE BOOL "Enable Internal Trusted Storage partition")
20set(TFM_PARTITION_PLATFORM OFF CACHE BOOL "Enable the TF-M Platform partition")
21set(TFM_PARTITION_PROTECTED_STORAGE OFF CACHE BOOL "Enable Protected Storage partition")
22set(TFM_PARTITION_INITIAL_ATTESTATION ON CACHE BOOL "Enable Initial Attestation partition")
23set(SYMMETRIC_INITIAL_ATTESTATION ON CACHE BOOL "Use symmetric crypto for inital attestation")
24set(TFM_PARTITION_FIRMWARE_UPDATE OFF CACHE BOOL "Enable firmware update partition")
Raef Coles9ec67e62020-07-10 09:40:35 +010025
Anton Komlev28f566b2022-10-27 17:40:37 +010026################################## Advanced options #############################
Raef Coles9ec67e62020-07-10 09:40:35 +010027
Anton Komlev28f566b2022-10-27 17:40:37 +010028set(PSA_FRAMEWORK_HAS_MM_IOVEC ON CACHE BOOL "Enable MM-IOVEC")
Xinyu Zhanga2fab0e2022-10-24 15:37:46 +080029set(MCUBOOT_IMAGE_NUMBER 1 CACHE STRING "Whether to combine S and NS into either 1 image, or sign each seperately")
Sherry Zhang07b42412021-01-07 14:19:41 +080030
Raef Coles9ec67e62020-07-10 09:40:35 +010031################################## Dependencies ################################
32
Xinyu Zhanga2fab0e2022-10-24 15:37:46 +080033set(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")
34set(TFM_MBEDCRYPTO_PSA_CRYPTO_CONFIG_PATH "${CMAKE_SOURCE_DIR}/lib/ext/mbedcrypto/mbedcrypto_config/crypto_config_profile_small.h" CACHE PATH "Config to use psa crypto setting for Mbed Crypto.")