Håkon Øye Amundsen | 207f2ab | 2021-06-04 13:43:19 +0200 | [diff] [blame] | 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 | |
| 6 | if BUILD_WITH_TFM |
| 7 | |
| 8 | config TFM_PARTITION_PROTECTED_STORAGE |
Gerard Marull-Paretas | 95fb0de | 2022-03-09 12:05:12 +0100 | [diff] [blame] | 9 | bool "Secure partition 'Protected Storage'" |
Joakim Andersson | 3abcc19 | 2022-09-22 16:47:21 +0200 | [diff] [blame] | 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 |
Håkon Øye Amundsen | 207f2ab | 2021-06-04 13:43:19 +0200 | [diff] [blame] | 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 | |
| 22 | config TFM_PARTITION_INTERNAL_TRUSTED_STORAGE |
Gerard Marull-Paretas | 95fb0de | 2022-03-09 12:05:12 +0100 | [diff] [blame] | 23 | bool "Secure partition 'Internal Trusted Storage'" |
Håkon Øye Amundsen | 207f2ab | 2021-06-04 13:43:19 +0200 | [diff] [blame] | 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 | |
| 33 | config TFM_PARTITION_CRYPTO |
Gerard Marull-Paretas | 95fb0de | 2022-03-09 12:05:12 +0100 | [diff] [blame] | 34 | bool "Secure partition 'Crypto'" |
Håkon Øye Amundsen | 207f2ab | 2021-06-04 13:43:19 +0200 | [diff] [blame] | 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 | |
| 44 | config TFM_PARTITION_INITIAL_ATTESTATION |
Gerard Marull-Paretas | 95fb0de | 2022-03-09 12:05:12 +0100 | [diff] [blame] | 45 | bool "Secure partition 'Initial Attestation'" |
Joakim Andersson | 3abcc19 | 2022-09-22 16:47:21 +0200 | [diff] [blame] | 46 | depends on TFM_PARTITION_CRYPTO |
Joakim Andersson | 2687376 | 2023-08-25 13:55:49 +0200 | [diff] [blame] | 47 | depends on TFM_INITIAL_ATTESTATION_KEY |
Håkon Øye Amundsen | 207f2ab | 2021-06-04 13:43:19 +0200 | [diff] [blame] | 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 | |
| 56 | config TFM_PARTITION_PLATFORM |
Gerard Marull-Paretas | 95fb0de | 2022-03-09 12:05:12 +0100 | [diff] [blame] | 57 | bool "Secure partition 'Platform'" |
Håkon Øye Amundsen | 207f2ab | 2021-06-04 13:43:19 +0200 | [diff] [blame] | 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 | |
Kevin Townsend | eacae5e | 2021-04-20 01:06:01 +0200 | [diff] [blame] | 67 | config TFM_PARTITION_FIRMWARE_UPDATE |
| 68 | bool "Include the secure parition 'Firmware Update'" |
Jimmy Brisson | e7e78cb | 2022-03-25 07:44:26 -0500 | [diff] [blame] | 69 | select TFM_MCUBOOT_DATA_SHARING |
Kevin Townsend | eacae5e | 2021-04-20 01:06:01 +0200 | [diff] [blame] | 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 | |
Joakim Andersson | 70a9bc0 | 2021-10-12 17:17:01 +0200 | [diff] [blame] | 80 | choice TFM_PARTITION_LOG_LEVEL |
Joakim Andersson | bfbee8c | 2022-02-03 10:49:25 +0100 | [diff] [blame] | 81 | prompt "TF-M Partition Log Level" if !TFM_LOG_LEVEL_SILENCE |
Joakim Andersson | 70a9bc0 | 2021-10-12 17:17:01 +0200 | [diff] [blame] | 82 | default TFM_PARTITION_LOG_LEVEL_INFO |
| 83 | config TFM_PARTITION_LOG_LEVEL_DEBUG |
| 84 | bool "Debug" |
| 85 | config TFM_PARTITION_LOG_LEVEL_INFO |
| 86 | bool "Info" |
| 87 | config TFM_PARTITION_LOG_LEVEL_ERROR |
| 88 | bool "Error" |
| 89 | config TFM_PARTITION_LOG_LEVEL_SILENCE |
| 90 | bool "Off" |
| 91 | endchoice |
| 92 | |
Håkon Øye Amundsen | 207f2ab | 2021-06-04 13:43:19 +0200 | [diff] [blame] | 93 | endif # BUILD_WITH_TFM |