From 369bbaf2e81dc05b7cd3681e62957347578f90e4 Mon Sep 17 00:00:00 2001 From: Wang Qixiang <43193572+wqx6@users.noreply.github.com> Date: Fri, 30 Jun 2023 05:45:10 +0800 Subject: [PATCH] ESP32: Add option to enable controller building (#27544) --- config/esp32/components/chip/CMakeLists.txt | 4 ++++ config/esp32/components/chip/Kconfig | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/config/esp32/components/chip/CMakeLists.txt b/config/esp32/components/chip/CMakeLists.txt index 8b46be6b092e89..d279ce37dc4535 100644 --- a/config/esp32/components/chip/CMakeLists.txt +++ b/config/esp32/components/chip/CMakeLists.txt @@ -158,6 +158,10 @@ if (CONFIG_ENABLE_CHIP_SHELL) chip_gn_arg_append("chip_build_libshell" "true") endif() +if (CONFIG_ENABLE_CHIP_CONTROLLER_BUILD) + chip_gn_arg_append("chip_build_controller" "true") +endif() + if (CONFIG_ENABLE_WIFI_STATION OR CONFIG_ENABLE_WIFI_AP) chip_gn_arg_append("chip_enable_wifi" "true") else() diff --git a/config/esp32/components/chip/Kconfig b/config/esp32/components/chip/Kconfig index 7bd4b0bf924de5..99de12afa97e6e 100644 --- a/config/esp32/components/chip/Kconfig +++ b/config/esp32/components/chip/Kconfig @@ -96,6 +96,12 @@ menu "CHIP Core" help Link the application against CHIP interactive shell. + config ENABLE_CHIP_CONTROLLER_BUILD + bool "Enable chip-controller build" + default n + help + This option enables chip-controller building. + config DISABLE_IPV4 bool "Disable IPv4 functionality in the CHIP stack" default "n"