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