Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ESP32: Add menuconfig to use Thread for non-matter task. #25962

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion config/esp32/components/chip/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -155,12 +155,16 @@ if ((CONFIG_BT_ENABLED) AND (CONFIG_ENABLE_CHIPOBLE))
endif()
endif()

if (CONFIG_OPENTHREAD_ENABLED)
if (CONFIG_ENABLE_MATTER_OVER_THREAD)
chip_gn_arg_append("chip_enable_openthread" "true")
else()
chip_gn_arg_append("chip_enable_openthread" "false")
endif()

if (CONFIG_OPENTHREAD_FTD)
chip_gn_arg_append("chip_openthread_ftd" "true")
else()
chip_gn_arg_append("chip_openthread_ftd" "false")
endif()

if (CONFIG_ENABLE_OTA_REQUESTOR)
Expand Down
7 changes: 7 additions & 0 deletions config/esp32/components/chip/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -498,6 +498,13 @@ menu "CHIP Device Layer"
menu "CHIP Thread Options"
visible if OPENTHREAD_ENABLED

config ENABLE_MATTER_OVER_THREAD
bool "Enable Matter-over-Thread Support"
default y
depends on OPENTHREAD_ENABLED
help
Enables support for sending and receiving CHIP messages over a Thread Connection.

config THREAD_TASK_STACK_SIZE
int "Thread task stack size"
default 5120
Expand Down
2 changes: 1 addition & 1 deletion src/platform/ESP32/CHIPDevicePlatformConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@

#endif /* CHIP_DEVICE_CONFIG_DEVICE_PRODUCT_ID */

#define CHIP_DEVICE_CONFIG_ENABLE_THREAD CONFIG_OPENTHREAD_ENABLED
#define CHIP_DEVICE_CONFIG_ENABLE_THREAD CONFIG_ENABLE_MATTER_OVER_THREAD
#define CHIP_DEVICE_CONFIG_ENABLE_THREAD_SRP_CLIENT CONFIG_OPENTHREAD_SRP_CLIENT
#define CHIP_DEVICE_CONFIG_ENABLE_THREAD_DNS_CLIENT CONFIG_OPENTHREAD_DNS_CLIENT

Expand Down