feat(openthread): optimized the autostart macro

This commit is contained in:
Xu Si Yu
2026-05-08 14:27:52 +08:00
parent e875d571b2
commit ca34d4ddda
5 changed files with 7 additions and 21 deletions
@@ -1,6 +1,6 @@
set(srcs "")
if(CONFIG_OPENTHREAD_BORDER_ROUTER_AUTO_START)
if(CONFIG_OPENTHREAD_BORDER_ROUTER AND CONFIG_OPENTHREAD_NETWORK_AUTO_START)
list(APPEND srcs "ot_examples_br.c")
endif()
@@ -1,12 +0,0 @@
menu "OpenThread Border Router Config"
depends on OPENTHREAD_BORDER_ROUTER
config OPENTHREAD_BORDER_ROUTER_AUTO_START
depends on OPENTHREAD_BORDER_ROUTER
bool 'Enable the border router auto start'
default n
help
If enabled, the program will automatically connect to the backbone network and
initialize the border router at startup.
endmenu