From 1538452566ea8ae765fd15acc45877bed36dbcfa Mon Sep 17 00:00:00 2001 From: Jerry-ESP <107675966+Jerry-ESP@users.noreply.github.com> Date: Thu, 12 Oct 2023 20:54:14 +0800 Subject: [PATCH] add a config to enable event list attribute (#29721) --- 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 3f0f59613db100..b2058fe75df41c 100644 --- a/config/esp32/components/chip/CMakeLists.txt +++ b/config/esp32/components/chip/CMakeLists.txt @@ -273,6 +273,10 @@ if (CONFIG_ENABLE_ESP_INSIGHTS_TRACE) target_include_directories(${COMPONENT_LIB} INTERFACE "${CHIP_ROOT}/src/tracing/esp32_trace/include") 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 bbe36e77c001e5..00bfed5df9b124 100644 --- a/config/esp32/components/chip/Kconfig +++ b/config/esp32/components/chip/Kconfig @@ -1069,4 +1069,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