1# Configuration for the partitions in the TF-M Module 2 3# Copyright (c) 2021 Nordic Semiconductor ASA 4# SPDX-License-Identifier: Apache-2.0 5 6if BUILD_WITH_TFM 7 8config TFM_PARTITION_PROTECTED_STORAGE 9 bool "Secure partition 'Protected Storage'" 10 depends on TFM_PARTITION_PLATFORM # Specfically TFM_SP_PLATFORM_NV_COUNTER service 11 depends on TFM_PARTITION_INTERNAL_TRUSTED_STORAGE 12 depends on TFM_PARTITION_CRYPTO 13 default y 14 help 15 Setting this option will cause '-DTFM_PARTITION_PROTECTED_STORAGE' 16 to be passed to the TF-M build system. Look at 'config_default.cmake' 17 in the trusted-firmware-m repository for details regarding this 18 parameter. Any dependencies between the various TFM_PARTITION_* 19 options are handled by the build system in the trusted-firmware-m 20 repository. 21 22config TFM_PARTITION_INTERNAL_TRUSTED_STORAGE 23 bool "Secure partition 'Internal Trusted Storage'" 24 default y 25 help 26 Setting this option will cause '-DTFM_PARTITION_INTERNAL_TRUSTED_STORAGE' 27 to be passed to the TF-M build system. Look at 'config_default.cmake' 28 in the trusted-firmware-m repository for details regarding this 29 parameter. Any dependencies between the various TFM_PARTITION_* 30 options are handled by the build system in the trusted-firmware-m 31 repository. 32 33config TFM_PARTITION_CRYPTO 34 bool "Secure partition 'Crypto'" 35 default y 36 help 37 Setting this option will cause '-DTFM_PARTITION_CRYPTO' 38 to be passed to the TF-M build system. Look at 'config_default.cmake' 39 in the trusted-firmware-m repository for details regarding this 40 parameter. Any dependencies between the various TFM_PARTITION_* 41 options are handled by the build system in the trusted-firmware-m 42 repository. 43 44config TFM_PARTITION_INITIAL_ATTESTATION 45 bool "Secure partition 'Initial Attestation'" 46 depends on TFM_PARTITION_CRYPTO 47 depends on TFM_INITIAL_ATTESTATION_KEY 48 help 49 Setting this option will cause '-DTFM_PARTITION_INITIAL_ATTESTATION' 50 to be passed to the TF-M build system. Look at 'config_default.cmake' 51 in the trusted-firmware-m repository for details regarding this 52 parameter. Any dependencies between the various TFM_PARTITION_* 53 options are handled by the build system in the trusted-firmware-m 54 repository. 55 56config TFM_PARTITION_PLATFORM 57 bool "Secure partition 'Platform'" 58 default y 59 help 60 Setting this option will cause '-DTFM_PARTITION_PLATFORM' 61 to be passed to the TF-M build system. Look at 'config_default.cmake' 62 in the trusted-firmware-m repository for details regarding this 63 parameter. Any dependencies between the various TFM_PARTITION_* 64 options are handled by the build system in the trusted-firmware-m 65 repository. 66 67config TFM_PARTITION_FIRMWARE_UPDATE 68 bool "Include the secure parition 'Firmware Update'" 69 select TFM_MCUBOOT_DATA_SHARING 70 default n 71 help 72 Setting this option will cause '-DTFM_PARTITION_FIRMWARE_UPDATE' 73 to be passed to the TF-M build system. Look at 'config_default.cmake' 74 in the trusted-firmware-m repository for details regarding this 75 parameter. Any dependencies between the various TFM_PARTITION_* 76 options are handled by the build system in the trusted-firmware-m 77 repository. 78 79 80choice TFM_PARTITION_LOG_LEVEL 81 prompt "TF-M Partition Log Level" if !TFM_LOG_LEVEL_SILENCE 82 default TFM_PARTITION_LOG_LEVEL_INFO 83config TFM_PARTITION_LOG_LEVEL_DEBUG 84 bool "Debug" 85config TFM_PARTITION_LOG_LEVEL_INFO 86 bool "Info" 87config TFM_PARTITION_LOG_LEVEL_ERROR 88 bool "Error" 89config TFM_PARTITION_LOG_LEVEL_SILENCE 90 bool "Off" 91endchoice 92 93endif # BUILD_WITH_TFM 94