From c49852a85368fe39e947ea4885cdead1d9352865 Mon Sep 17 00:00:00 2001 From: Jerry-ESP <107675966+Jerry-ESP@users.noreply.github.com> Date: Wed, 18 Oct 2023 01:55:52 +0800 Subject: [PATCH] add a config to enable event list attribute (#29745) --- config/esp32/components/chip/CMakeLists.txt | 4 ++++ config/esp32/components/chip/Kconfig | 9 +++++++++ 2 files changed, 13 insertions(+) diff --git a/config/esp32/components/chip/CMakeLists.txt b/config/esp32/components/chip/CMakeLists.txt index cb2c62c76607b8..fd3efee5fd5c4d 100644 --- a/config/esp32/components/chip/CMakeLists.txt +++ b/config/esp32/components/chip/CMakeLists.txt @@ -246,6 +246,10 @@ if (CONFIG_USE_ESP32_ECDSA_PERIPHERAL) chip_gn_arg_append("chip_use_esp32_ecdsa_peripheral" "true") endif() +if (CONFIG_ENABLE_MATTER_EVENT_LIST) + chip_gn_arg_append ("enable_eventlist_attribute" "true") +endif() + set(args_gn_input "${CMAKE_CURRENT_BINARY_DIR}/args.gn.in") file(GENERATE OUTPUT "${args_gn_input}" CONTENT "${chip_gn_args}") diff --git a/config/esp32/components/chip/Kconfig b/config/esp32/components/chip/Kconfig index 2fd6bd770ef849..90c9da8ada72f8 100644 --- a/config/esp32/components/chip/Kconfig +++ b/config/esp32/components/chip/Kconfig @@ -940,4 +940,13 @@ menu "CHIP Device Layer" endmenu + menu "Enable Matter Event List" + config ENABLE_MATTER_EVENT_LIST + bool "Enable Matter support Event List attribute" + default n + help + Enable Matter support Event List attribute. + + endmenu + endmenu