From f8e6f9d0ad322e14feb19b1c326f998b0f88184f Mon Sep 17 00:00:00 2001 From: Marcin Kajor Date: Fri, 15 Mar 2024 13:56:31 +0100 Subject: [PATCH] [nrf noup] Fix the external cluster injection mechanism The necessary change was reverted during the last upmerge. Without this fix, the external cluster injection does not work. Signed-off-by: Marcin Kajor --- src/app/chip_data_model.cmake | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/app/chip_data_model.cmake b/src/app/chip_data_model.cmake index a34bedc6ab..6ec850ae5e 100644 --- a/src/app/chip_data_model.cmake +++ b/src/app/chip_data_model.cmake @@ -69,10 +69,14 @@ endfunction() # supported by the application. # IDL .matter IDL file to use for codegen. Inferred from ZAP_FILE # if not provided +# EXTERNAL_CLUSTERS Clusters with external implementations. The default implementations +# will not be used nor required for these clusters. +# Format: MY_CUSTOM_CLUSTER'. # + function(chip_configure_data_model APP_TARGET) set(SCOPE PRIVATE) - cmake_parse_arguments(ARG "INCLUDE_SERVER;BYPASS_IDL" "ZAP_FILE;GEN_DIR;IDL" "" ${ARGN}) + cmake_parse_arguments(ARG "INCLUDE_SERVER;BYPASS_IDL" "SCOPE;ZAP_FILE;GEN_DIR;IDL" "EXTERNAL_CLUSTERS" ${ARGN}) if(ARG_SCOPE) set(SCOPE ${ARG_SCOPE})