blob: 1e45ad144ca6dd90037603a6ee710e45f4d72bcd [file] [log] [blame]
Håkon Øye Amundsen207f2ab2021-06-04 13:43:19 +02001# 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
Gerard Marull-Paretas95fb0de2022-03-09 12:05:12 +01009 bool "Secure partition 'Protected Storage'"
Joakim Andersson3abcc192022-09-22 16:47:21 +020010 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 Amundsen207f2ab2021-06-04 13:43:19 +020013 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
Gerard Marull-Paretas95fb0de2022-03-09 12:05:12 +010023 bool "Secure partition 'Internal Trusted Storage'"
Håkon Øye Amundsen207f2ab2021-06-04 13:43:19 +020024 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
Gerard Marull-Paretas95fb0de2022-03-09 12:05:12 +010034 bool "Secure partition 'Crypto'"
Håkon Øye Amundsen207f2ab2021-06-04 13:43:19 +020035 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
Gerard Marull-Paretas95fb0de2022-03-09 12:05:12 +010045 bool "Secure partition 'Initial Attestation'"
Joakim Andersson3abcc192022-09-22 16:47:21 +020046 depends on TFM_PARTITION_CRYPTO
Joakim Andersson26873762023-08-25 13:55:49 +020047 depends on TFM_INITIAL_ATTESTATION_KEY
Håkon Øye Amundsen207f2ab2021-06-04 13:43:19 +020048 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
Gerard Marull-Paretas95fb0de2022-03-09 12:05:12 +010057 bool "Secure partition 'Platform'"
Håkon Øye Amundsen207f2ab2021-06-04 13:43:19 +020058 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 Townsendeacae5e2021-04-20 01:06:01 +020067config TFM_PARTITION_FIRMWARE_UPDATE
68 bool "Include the secure parition 'Firmware Update'"
Jimmy Brissone7e78cb2022-03-25 07:44:26 -050069 select TFM_MCUBOOT_DATA_SHARING
Kevin Townsendeacae5e2021-04-20 01:06:01 +020070 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 Andersson70a9bc02021-10-12 17:17:01 +020080choice TFM_PARTITION_LOG_LEVEL
Joakim Anderssonbfbee8c2022-02-03 10:49:25 +010081 prompt "TF-M Partition Log Level" if !TFM_LOG_LEVEL_SILENCE
Joakim Andersson70a9bc02021-10-12 17:17:01 +020082 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
Håkon Øye Amundsen207f2ab2021-06-04 13:43:19 +020093endif # BUILD_WITH_TFM