1
2#-------------------------------------------------------------------------------
3# Copyright (c) 2023, Arm Limited. All rights reserved.
4#
5# SPDX-License-Identifier: BSD-3-Clause
6#
7#-------------------------------------------------------------------------------
8
9# Build
10CONFIG_TFM_PROFILE_SMALL=y
11
12# SPM
13CONFIG_TFM_ISOLATION_LEVEL=1
14CONFIG_CONFIG_TFM_SPM_BACKEND_SFN=y
15CONFIG_PSA_FRAMEWORK_HAS_MM_IOVEC=y
16
17# Secure partitions
18CONFIG_TFM_PARTITION_CRYPTO=y
19CONFIG_TFM_PARTITION_INTERNAL_TRUSTED_STORAGE=y
20CONFIG_TFM_PARTITION_PLATFORM=n
21CONFIG_TFM_PARTITION_PROTECTED_STORAGE=n
22CONFIG_TFM_PARTITION_INITIAL_ATTESTATION=y
23CONFIG_SYMMETRIC_INITIAL_ATTESTATION=y
24CONFIG_TFM_PARTITION_FIRMWARE_UPDATE=n
25
26# Bootloader
27CONFIG_MCUBOOT_IMAGE_NUMBER=1
28CONFIG_TFM_MBEDCRYPTO_CONFIG_PATH="${CMAKE_SOURCE_DIR}/lib/ext/mbedcrypto/mbedcrypto_config/tfm_mbedcrypto_config_profile_small.h"
29CONFIG_TFM_MBEDCRYPTO_PSA_CRYPTO_CONFIG_PATH="${CMAKE_SOURCE_DIR}/lib/ext/mbedcrypto/mbedcrypto_config/crypto_config_profile_small.h"
30
31# TF-M component configs
32
33# Secure Partitions component configs
34
35# Crypto component configs
36CONFIG_CRYPTO_ENGINE_BUF_SIZE=0x400
37CONFIG_CRYPTO_CONC_OPER_NUM=4
38CONFIG_CRYPTO_RNG_MODULE_ENABLED=y
39CONFIG_CRYPTO_KEY_MODULE_ENABLED=y
40CONFIG_CRYPTO_AEAD_MODULE_ENABLED=y
41CONFIG_CRYPTO_MAC_MODULE_ENABLED=y
42CONFIG_CRYPTO_HASH_MODULE_ENABLED=y
43CONFIG_CRYPTO_CIPHER_MODULE_ENABLED=y
44CONFIG_CRYPTO_ASYM_SIGN_MODULE_ENABLED=n
45CONFIG_CRYPTO_ASYM_ENCRYPT_MODULE_ENABLED=n
46CONFIG_CRYPTO_KEY_DERIVATION_MODULE_ENABLED=y
47CONFIG_CRYPTO_IOVEC_BUFFER_SIZE=5120
48CONFIG_CRYPTO_SINGLE_PART_FUNCS_DISABLED=y
49CONFIG_CRYPTO_STACK_SIZE=0x1B00
50
51# Attestation component configs
52CONFIG_ATTEST_INCLUDE_OPTIONAL_CLAIMS=y
53CONFIG_ATTEST_INCLUDE_COSE_KEY_ID=n
54CONFIG_ATTEST_STACK_SIZE=0x700
55CONFIG_ATTEST_TOKEN_PROFILE_PSA_IOT_1=y
56
57# ITS component configs
58CONFIG_ITS_CREATE_FLASH_LAYOUT=y
59CONFIG_ITS_RAM_FS=n
60CONFIG_ITS_VALIDATE_METADATA_FROM_FLASH=y
61CONFIG_ITS_MAX_ASSET_SIZE=512
62CONFIG_ITS_BUF_SIZE=32
63CONFIG_ITS_NUM_ASSETS=10
64CONFIG_ITS_STACK_SIZE=0x720
65
66# TF-M SPM component configs
67CONFIG_CONFIG_TFM_DOORBELL_API=n
68