Skip to content

Commit 714fdeb

Browse files
--common_code_reduction
1 parent 409a121 commit 714fdeb

7 files changed

Lines changed: 44 additions & 19 deletions

File tree

slc/component/matter-clusters/matter_ota_requestor.slcc

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,6 @@ source:
2020
- path: third_party/matter_sdk/src/app/clusters/ota-requestor/OTARequestorCluster.cpp
2121
- path: third_party/matter_sdk/src/app/clusters/ota-requestor/OTATestEventTriggerHandler.cpp
2222
include:
23-
- path: third_party/matter_sdk/src/controller
24-
file_list:
25-
- path: CHIPCluster.h
26-
- path: CommandSenderAllocator.h
27-
- path: InvokeInteraction.h
28-
- path: ReadInteraction.h
29-
- path: TypedCommandCallback.h
30-
- path: TypedReadCallback.h
31-
- path: WriteInteraction.h
3223
- path: third_party/matter_sdk/src/app/clusters/ota-requestor
3324
file_list:
3425
- path: BDXDownloader.h
@@ -44,6 +35,19 @@ include:
4435
- path: OTARequestorStorage.h
4536
- path: OTARequestorUserConsentDelegate.h
4637
- path: OTATestEventTriggerHandler.h
38+
# TODO these dependencies need to be fixed on CSA
39+
- path: third_party/matter_sdk/src/controller
40+
file_list:
41+
- path: CHIPCluster.h
42+
- path: InvokeInteraction.h
43+
- path: TypedCommandCallback.h
44+
- path: ReadInteraction.h
45+
- path: TypedReadCallback.h
46+
- path: WriteInteraction.h
47+
- path: CommandSenderAllocator.h
48+
- path: third_party/matter_sdk/src/app
49+
file_list:
50+
- path: BufferedReadCallback.h
4751
template_contribution:
4852
- name: component_catalog
4953
value: matter_ota_requestor

slc/component/matter-core-sdk/interaction_model.slcc

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ include:
1717
- path: third_party/nlio/include
1818
- path: third_party/matter_sdk/src/app
1919
file_list:
20+
- path: ReadClient.h # Unless we refactor everything matter needs this header even if the content is not compiled.
2021
- path: AttributeAccessToken.h
2122
- path: InteractionModelDelegatePointers.h
2223
- path: InteractionModelTimeout.h
@@ -53,12 +54,10 @@ include:
5354
- path: InteractionModelHelper.h
5455
- path: InteractionModelEngine.h
5556
- path: EventLoggingTypes.h
56-
- path: ReadClient.h
5757
- path: CommandResponseSender.h
5858
- path: StatusResponse.h
5959
- path: ReadPrepareParams.h
6060
- path: WriteClient.h
61-
- path: BufferedReadCallback.h
6261
- path: EventPathParams.h
6362
- path: CommandResponseHelper.h
6463
- path: CommandHandlerInterface.h
@@ -70,7 +69,6 @@ include:
7069
- path: AttributeAccessInterface.h
7170
- path: SafeAttributePersistenceProvider.h
7271
- path: EventHeader.h
73-
- path: ClusterStateCache.h
7472
- path: CASEClientPool.h
7573
- path: SpecificationDefinedRevisions.h
7674
- path: OperationalSessionSetupPool.h
@@ -100,7 +98,6 @@ source:
10098
- path: third_party/matter_sdk/src/app/InteractionModelEngine.cpp
10199
- path: third_party/matter_sdk/src/app/OperationalSessionSetup.cpp
102100
- path: third_party/matter_sdk/src/app/PendingResponseTrackerImpl.cpp
103-
- path: third_party/matter_sdk/src/app/ReadClient.cpp
104101
- path: third_party/matter_sdk/src/app/SimpleSubscriptionResumptionStorage.cpp
105102
- path: third_party/matter_sdk/src/app/StatusResponse.cpp
106103
- path: third_party/matter_sdk/src/app/SubscriptionResumptionSessionEstablisher.cpp

slc/component/matter-core-sdk/libchipdatamodel.slcc

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,10 @@ include:
6565
- path: InteractionModelHelper.h
6666
- path: InteractionModelEngine.h
6767
- path: EventLoggingTypes.h
68-
- path: ReadClient.h
6968
- path: CommandResponseSender.h
7069
- path: StatusResponse.h
7170
- path: ReadPrepareParams.h
7271
- path: WriteClient.h
73-
- path: BufferedReadCallback.h
7472
- path: EventPathParams.h
7573
- path: CommandResponseHelper.h
7674
- path: CommandHandlerInterface.h
@@ -83,7 +81,6 @@ include:
8381
- path: AttributeAccessInterface.h
8482
- path: SafeAttributePersistenceProvider.h
8583
- path: EventHeader.h
86-
- path: ClusterStateCache.h
8784
- path: CASEClientPool.h
8885
- path: SpecificationDefinedRevisions.h
8986
- path: OperationalSessionSetupPool.h
@@ -115,9 +112,7 @@ source:
115112
- path: third_party/matter_sdk/src/app/AttributeReportBuilder.cpp
116113
- path: third_party/matter_sdk/src/app/AttributePathExpandIterator.cpp
117114
- path: third_party/matter_sdk/src/app/AttributeValueEncoder.cpp
118-
- path: third_party/matter_sdk/src/app/BufferedReadCallback.cpp
119115
- path: third_party/matter_sdk/src/app/ChunkedWriteCallback.cpp
120-
- path: third_party/matter_sdk/src/app/ClusterStateCache.cpp
121116
- path: third_party/matter_sdk/src/app/CommandHandler.cpp
122117
- path: third_party/matter_sdk/src/app/CommandHandlerImpl.cpp
123118
- path: third_party/matter_sdk/src/app/CommandHandlerInterfaceRegistry.cpp
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
category: Matter|Interaction Model
2+
3+
description: Implements the Matter Interaction Model for the read client. Mostly use for controller.
4+
id: matter_read_client
5+
label: read_client
6+
package: matter
7+
provides:
8+
- name: matter_read_client
9+
quality: production
10+
metadata:
11+
sbom:
12+
license: "Apache 2.0"
13+
14+
15+
define:
16+
- name: CHIP_CONFIG_ENABLE_READ_CLIENT
17+
value: 1
18+
include:
19+
- path: third_party/matter_sdk/src/app/BufferedReadCallback.h
20+
- path: third_party/matter_sdk/src/app/ReadClient.h
21+
- path: third_party/matter_sdk/src/app/ClusterStateCache.h
22+
source:
23+
- path: third_party/matter_sdk/src/app/ReadClient.cpp
24+
- path: third_party/matter_sdk/src/app/BufferedReadCallback.cpp
25+
- path: third_party/matter_sdk/src/app/ClusterStateCache.cpp

slc/component/matter-platform/shell/matter_shell.slcc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ source:
105105
condition: [matter_tracing]
106106
- path: third_party/matter_sdk/examples/platform/silabs/shell/ble/BLEShellCommands.cpp
107107
- path: third_party/matter_sdk/examples/platform/silabs/shell/im/IMShellCommands.cpp
108+
condition: [matter_read_client]
108109

109110
define:
110111
- name: ENABLE_CHIP_SHELL

slc/component/matter-platform/size-reduction/matter_no_debug.slcc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,6 @@ define:
2424
value: "OT_LOG_LEVEL_NONE"
2525
- name: OPENTHREAD_CONFIG_LOG_LEVEL
2626
value: "OPENTHREAD_CONFIG_LOG_OUTPUT_NONE"
27+
- name: SL_MATTER_CLI_ARG_PARSER
28+
value: 0
29+
unless: [matter_shell]

slc/inc/app/AppBuildConfig.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
// <i> Default: 1
1515
// <q CHIP_CONFIG_ENABLE_READ_CLIENT> Read Client
16-
#define CHIP_CONFIG_ENABLE_READ_CLIENT 1
16+
#define CHIP_CONFIG_ENABLE_READ_CLIENT 0
1717

1818
// <i> Default: 1
1919
// <q CHIP_CONFIG_ENABLE_SESSION_RESUMPTION> Session Resumption

0 commit comments

Comments
 (0)