Skip to content

[Draft] Get static ZAP content from zzz_generated/#215

Draft
Sergei Lissianoi (selissia) wants to merge 4 commits intorelease_2.8-1.5from
zap-rework
Draft

[Draft] Get static ZAP content from zzz_generated/#215
Sergei Lissianoi (selissia) wants to merge 4 commits intorelease_2.8-1.5from
zap-rework

Conversation

@selissia
Copy link
Contributor

@selissia Sergei Lissianoi (selissia) commented Nov 14, 2025

Issue Link:
N/A

Description of Problem/Feature:
We should not generate static ZAP content in every project build. https://jira.silabs.com/browse/MATTER-5569

Description of Fix/Solution:
Update Matter components to pick up the static ZAP content from matter_sdk/zzz_generated rather than from the dynamically generated auotgen/zap_generated/clusters/.. directory tree. The exception is the case where the project uses custom clusters or cluster extensions: in this case the project must install the matter_zap_custom_generation component introduced in this PR and static ZAP content will be generated and picked up from auotgen/zap_generated/clusters/...

Introduce the gen_static_zap_includes.py which syncs the components with changes to zzz_generated, the script should be run with every CSA merge.

Depends on project-chip/zap#1674

Testing Done:

"path": "../../../third_party/matter_sdk/src/app/zap-templates/templates/app/clusters-shared-Global-Ids.h.zapt",
"name": "Shared global ids",
"output": "clusters/shared/GlobalIds.h"
},
Copy link
Contributor Author

@selissia Sergei Lissianoi (selissia) Nov 25, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Once ZAP changes are in, these templates will be restored with an added "static" key which will prevent their execution unless "static" is set the .zap file.

include:
- path: third_party/matter_sdk/zzz_generated/app-common/
unless: [matter_zap_custom_generation]
- path: third_party/matter_sdk/zzz_generated/app-common/clusters/AccessControl
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will add all the include paths in the Makefile, causing the issue pop up again if I am not wrong.

This should be provided below and having only one folder path, will confirm once.

@selissia Sergei Lissianoi (selissia) changed the title Get static ZAP content from zzz_generated/ [Draft] Get static ZAP content from zzz_generated/ Dec 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants