Skip to content

Commit

Permalink
[nrf fromtree] Add ICDConfigurationData to app sources when ICD manag…
Browse files Browse the repository at this point in the history
…ement server cluster is included (#37653)

* Fix ICD management server cluster dependecies

Add ICDConfigurationData to app sources when ICD management server
cluster is included in sample, but ICD support is disabled, e.g.
lock-app on some platforms.

Related to: #32321

Signed-off-by: Adrian Gielniewski <[email protected]>

* Add TODO comments for #32321

Add TODO comments for issue related to ICD management server.

Signed-off-by: Adrian Gielniewski <[email protected]>

---------

Signed-off-by: Adrian Gielniewski <[email protected]>
(cherry picked from commit 00c6f4ee91b79da9905eb827b5ae7e3018e34783)
Signed-off-by: Adrian Gielniewski <[email protected]>
  • Loading branch information
adigie committed Feb 19, 2025
1 parent ff8e2bf commit b582ae7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/app/chip_data_model.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,16 @@ include("${CHIP_ROOT}/src/app/codegen-data-model-provider/model.cmake")
function(chip_configure_cluster APP_TARGET CLUSTER)
file(GLOB CLUSTER_SOURCES "${CHIP_APP_BASE_DIR}/clusters/${CLUSTER}/*.cpp")
target_sources(${APP_TARGET} PRIVATE ${CLUSTER_SOURCES})

# Add clusters dependencies
if (CLUSTER STREQUAL "icd-management-server")
# TODO(#32321): Remove after issue is resolved
# Add ICDConfigurationData when ICD management server cluster is included,
# but ICD support is disabled, e.g. lock-app on some platforms
if(NOT CONFIG_CHIP_ENABLE_ICD_SUPPORT)
target_sources(${APP_TARGET} PRIVATE ${CHIP_APP_BASE_DIR}/icd/server/ICDConfigurationData.cpp)
endif()
endif()
endfunction()

#
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,7 @@ bool emberAfIcdManagementClusterUnregisterClientCallback(CommandHandler * comman
bool emberAfIcdManagementClusterStayActiveRequestCallback(CommandHandler * commandObj, const ConcreteCommandPath & commandPath,
const Commands::StayActiveRequest::DecodableType & commandData)
{
// TODO(#32321): Remove #if after issue is resolved
// Note: We only need this #if statement for platform examples that enable the ICD management server without building the sample
// as an ICD. Since this is not spec compliant, we should remove this #if statement once we stop compiling the ICD management
// server in those examples.
Expand Down

0 comments on commit b582ae7

Please sign in to comment.