-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Expand file tree
/
Copy pathKconfig
More file actions
202 lines (150 loc) · 5.3 KB
/
Kconfig
File metadata and controls
202 lines (150 loc) · 5.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
#
# Copyright (c) 2019 Nordic Semiconductor ASA
#
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
#
if BT_MESH
menu "Bluetooth Mesh"
if BT_MESH_SETTINGS_WORKQ
config BT_MESH_SETTINGS_WORKQ_STACK_SIZE
default 1400
endif
if SOC_SERIES_NRF54L
config BT_MESH_ADV_STACK_SIZE
default 2048
endif # SOC_SERIES_NRF54L
if !BUILD_WITH_TFM
# NLC profile or DFU distributor role support requires more netkeys and appkeys
# thus more HEAP is needed by MEBEDTLS to accommodate minimum number of keys.
config MBEDTLS_HEAP_SIZE
default 2048 if BT_MESH_DFD_SRV
default 1152 if BT_MESH_NLC_PERF_BASELINE
default 1024
if BT_SETTINGS
config BT_MESH_SECURE_STORAGE
bool
default y
imply SECURE_STORAGE
if TRUSTED_STORAGE
choice TRUSTED_STORAGE_BACKEND_AEAD_KEY
default TRUSTED_STORAGE_BACKEND_AEAD_KEY_HASH_UID if SOC_SERIES_NRF52
endchoice # TRUSTED_STORAGE_BACKEND_AEAD_KEY
config BT_MESH_CRYPTO_KEY_INITIALIZER
bool
default y if TRUSTED_STORAGE_BACKEND_AEAD_KEY_DERIVE_FROM_HUK
imply HW_UNIQUE_KEY_WRITE_ON_CRYPTO_INIT if HW_UNIQUE_KEY_SUPPORTED
endif # TRUSTED_STORAGE
endif # BT_SETTINGS
endif # !BUILD_WITH_TFM
if BT_MESH_ADV_EXT
# Set the optimal advertiser configuration to improve performance of the Relay, GATT and Friend
# features.
#
# <num of adv sets> = 1 (local msgs) + 2 (relay msgs) + 1 (GATT advs) + 1 (Friend msgs)
config BT_EXT_ADV_MAX_ADV_SET
default 5
config BT_MESH_RELAY_ADV_SETS
depends on BT_MESH_RELAY
default 2
config BT_MESH_ADV_EXT_GATT_SEPARATE
depends on BT_MESH_GATT_SERVER
default y
config BT_MESH_ADV_EXT_FRIEND_SEPARATE
depends on BT_MESH_FRIEND
default y
if BT_MESH_RELAY
config BT_MESH_RELAY_RETRANSMIT_COUNT
default 0
config BT_MESH_RELAY_BUF_COUNT
default 10
endif # BT_MESH_RELAY
endif
# Provides baseline performance requirements for NLC profiles.
# Automatically enabled when any NLC profile is selected.
config BT_MESH_NLC_PERF_BASELINE
bool
select BT_MESH_COMP_PAGE_2
select BT_MESH_COMP_PAGE_1
# Provides strict performance requirements needed for some NLC profiles.
# Automatically enabled when relevant NLC profiles are selected.
# Includes all baseline requirements plus additional strict requirements.
config BT_MESH_NLC_PERF_STRICT
bool
select BT_MESH_NLC_PERF_BASELINE
menu "NLC Profile performance configuration"
config BT_MESH_NLC_PERF_SCENE_SELECTOR
bool "Basic Scene Selector NLC profile performance configuration"
select BT_MESH_NLC_PERF_BASELINE
config BT_MESH_NLC_PERF_DIMMING_CONTROL
bool "Dimming Control NLC profile performance configuration"
select BT_MESH_NLC_PERF_BASELINE
config BT_MESH_NLC_PERF_ENERGY_MONITOR
bool "Energy Monitor NLC profile performance configuration"
select BT_MESH_NLC_PERF_BASELINE
config BT_MESH_NLC_PERF_OCCUPANCY_SENSOR
bool "Occupancy Sensor NLC profile performance configuration"
select BT_MESH_NLC_PERF_BASELINE
config BT_MESH_NLC_PERF_AMBIENT_LIGHT_SENSOR
bool "Ambient Light Sensor NLC profile performance configuration"
select BT_MESH_NLC_PERF_BASELINE
config BT_MESH_NLC_PERF_LIGHTNESS_CTRL
bool "Basic Lightness Controller NLC profile performance configuration"
select BT_MESH_NLC_PERF_STRICT
config BT_MESH_NLC_PERF_HVAC_INTEGRATION
bool "HVAC Integration NLC profile performance configuration"
select BT_MESH_NLC_PERF_STRICT
endmenu
config BT_MESH_NLC_PERF_DEFAULT
bool "Default NLC profile performance configuration [DEPRECATED]"
select DEPRECATED
select BT_MESH_NLC_PERF_BASELINE
help
This option is deprecated. Use individual profile options instead.
Enables performance configurations required for the Basic Scene Selector,
Dimming Control, Energy Monitor, Occupancy Sensor, and Ambient Light
Sensor NLC profiles.
config BT_MESH_NLC_PERF_CONF
bool "NLC performance configurations [DEPRECATED]"
select DEPRECATED
select BT_MESH_NLC_PERF_BASELINE
# Note: _STRICT configs must have precedence over _BASELINE.
config BT_MESH_CRPL
default 255 if BT_MESH_NLC_PERF_STRICT
default 32 if BT_MESH_NLC_PERF_BASELINE
range 255 65535 if BT_MESH_NLC_PERF_STRICT
range 32 65535 if BT_MESH_NLC_PERF_BASELINE
config BT_MESH_MODEL_GROUP_COUNT
default 32 if BT_MESH_NLC_PERF_STRICT
range 32 4096 if BT_MESH_NLC_PERF_STRICT
config BT_MESH_MSG_CACHE_SIZE
default 64 if BT_MESH_NLC_PERF_BASELINE
range 64 65535 if BT_MESH_NLC_PERF_BASELINE
config BT_MESH_APP_KEY_COUNT
default 3 if BT_MESH_NLC_PERF_BASELINE
range 3 4096 if BT_MESH_NLC_PERF_BASELINE
config BT_MESH_SUBNET_COUNT
default 2 if BT_MESH_NLC_PERF_BASELINE
range 2 4096 if BT_MESH_NLC_PERF_BASELINE
config BT_MESH_PROXY_FILTER_SIZE
default 8 if BT_MESH_NLC_PERF_BASELINE
range 8 32767 if BT_MESH_NLC_PERF_BASELINE
config BT_MESH_KEY_IMPORTER
bool "Use key importer"
help
Use key importer to read out the keys stored in settings subsystem
and import them into PSA internal trusted storage. This is required if
a provisioned device is still going to stay provisioned after changing
from an image using TinyCrypt to an image that uses PSA crypto.
config BT_MESH_KEY_IMPORTER_PRIO
int "Initialization priority for key importer"
depends on BT_MESH_KEY_IMPORTER
default KERNEL_INIT_PRIORITY_DEFAULT
help
The key importer is initialized before the main application. It is initialized
using system initialization macro with application level.
rsource "Kconfig.models"
rsource "Kconfig.dk_prov"
rsource "shell/Kconfig"
rsource "Kconfig.rpl"
endmenu
endif # BT_MESH