2
2
3
3
# Copyright (c) 2018 Nordic Semiconductor ASA
4
4
# SPDX-License-Identifier: Apache-2.0
5
- config OPENTHREAD_SECURITY_INTERNAL
6
- bool
7
- help
8
- OpenThread setting to signal that OpenThread security settings, such
9
- as the OPENTHREAD_MBEDTLS setting will be controlled through other
10
- Kconfig dependencies and should not be user configurable.
11
-
12
5
menuconfig NET_L2_OPENTHREAD
13
6
bool "OpenThread L2"
14
7
depends on NETWORKING
8
+
9
+ choice NET_L2_OPENTHREAD_IMPLEMENTATION
10
+ prompt "OpenThread L2 implementation"
11
+ depends on NET_L2_OPENTHREAD
12
+
13
+ config NET_L2_OPENTHREAD_IMPLEMENTATION_ZEPHYR
14
+ bool "Zephyr's OpenThread L2 implementation"
15
15
select NET_L2_PHY_IEEE802154
16
16
select OPENTHREAD
17
17
@@ -28,13 +28,17 @@ menuconfig NET_L2_OPENTHREAD
28
28
imply NET_UDP
29
29
imply NET_IPV6
30
30
imply NET_CONFIG_NEED_IPV6
31
+ help
32
+ Use Zephyr's implementation of the OpenThread L2.
33
+
34
+ endchoice # NET_L2_OPENTHREAD_IMPLEMENTATION
31
35
32
- if NET_L2_OPENTHREAD
36
+ if NET_L2_OPENTHREAD_IMPLEMENTATION_ZEPHYR
33
37
34
38
choice OPENTHREAD_IMPLEMENTATION
35
39
prompt "OpenThread origin selection"
36
40
help
37
- Select OpenThread to use for build. Custom OpenThread implementations
41
+ Select OpenThread stack to use for build. Custom OpenThread implementations
38
42
can be added to the application Kconfig.
39
43
40
44
config OPENTHREAD_SOURCES
@@ -63,7 +67,7 @@ menuconfig OPENTHREAD_DEBUG
63
67
help
64
68
This option enables logging support for OpenThread.
65
69
66
- choice
70
+ choice OPENTHREAD_LOG_LEVEL_CHOICE
67
71
prompt "OpenThread stack log level"
68
72
depends on OPENTHREAD_DEBUG
69
73
help
@@ -79,7 +83,7 @@ config OPENTHREAD_LOG_LEVEL_INFO
79
83
bool "Informational"
80
84
config OPENTHREAD_LOG_LEVEL_DEBG
81
85
bool "Debug"
82
- endchoice
86
+ endchoice # OPENTHREAD_LOG_LEVEL_CHOICE
83
87
84
88
config OPENTHREAD_LOG_LEVEL
85
89
int
@@ -169,7 +173,6 @@ config MBEDTLS_PROMPTLESS
169
173
choice OPENTHREAD_SECURITY
170
174
prompt "OpenThread security"
171
175
default OPENTHREAD_MBEDTLS_CHOICE
172
- depends on !OPENTHREAD_SECURITY_INTERNAL
173
176
174
177
config CUSTOM_OPENTHREAD_SECURITY
175
178
bool "Custom"
@@ -232,7 +235,7 @@ config OPENTHREAD_COPROCESSOR
232
235
233
236
if OPENTHREAD_COPROCESSOR
234
237
235
- choice
238
+ choice OPENTHREAD_COPROCESSOR_CHOICE
236
239
prompt "OpenThread Co-Processor type"
237
240
help
238
241
This option selects Thread network co-processor type
@@ -241,7 +244,7 @@ config OPENTHREAD_COPROCESSOR_NCP
241
244
bool "NCP - Network Co-Processor"
242
245
config OPENTHREAD_COPROCESSOR_RCP
243
246
bool "RCP - Radio Co-Processor"
244
- endchoice
247
+ endchoice # OPENTHREAD_COPROCESSOR_CHOICE
245
248
246
249
config OPENTHREAD_COPROCESSOR_UART_RING_BUFFER_SIZE
247
250
int "Set Co-Processor UART ring buffer size"
@@ -350,4 +353,4 @@ config OPENTHREAD_PLATFORM_KEYS_EXPORTABLE_ENABLE
350
353
help
351
354
Enable the creation of exportable MAC keys in the OpenThread Key Manager.
352
355
353
- endif # NET_L2_OPENTHREAD
356
+ endif # NET_L2_OPENTHREAD_IMPLEMENTATION_ZEPHYR
0 commit comments