Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[nrf toup][nrfconnect] Add --full flag to zap-generate and parametrize app-common zap-generated path #567

Merged

Conversation

maciejbaczmanski
Copy link
Member

@maciejbaczmanski maciejbaczmanski commented Mar 4, 2025

Add a --full flag that generates full data model and puts it it app-common/zap-generated subdirectory.

Additionaly fix minor bug when equal paths have been shown as non- relative and zap file is not properly updated with zcl.json file

Also pull commit [nrf fromtree] Parametrize app-common zap-generated path from upstream

* [app] Parametrize app-common zap-generated path

Parametrize app-common zap-generated path to allow building
Matter using custom generated zap files stored in different path.
When user adds custom clusters, full zap regeneration is needed.
Storing these files in fixed place requires regeneration every
time user wants to build different project (with different
clusters). This commit allows to store zap-generated files
separately and provide their path by seting `CHIP_APP_ZAP_DIR`
cmake and `chip_app_zap_dir` GN flags.

Signed-off-by: Maciej Baczmanski <maciej.baczmanski@nordicsemi.no>

* [nrfconnect] Allow switching `CHIP_APP_ZAP_DIR` by cmake.

Signed-off-by: Maciej Baczmanski <maciej.baczmanski@nordicsemi.no>

---------

Signed-off-by: Maciej Baczmanski <maciej.baczmanski@nordicsemi.no>
(cherry picked from commit a4530cbd8f3241355f232f7d23016eb5c57f6f3f)
Add a `--full` flag that generates full data model and puts it
it `app-common/zap-generated` subdirectory.

Additionaly fix minor bug when equal paths have been shown as non-
relative and zap file is not properly updated with zcl.json file

Signed-off-by: Maciej Baczmanski <maciej.baczmanski@nordicsemi.no>
@maciejbaczmanski maciejbaczmanski changed the title [nrf toup][nrfconnect] Add --full flag to zap-generate [nrf toup][nrfconnect] Add --full flag to zap-generate and parametrize app-common zap-generated path Mar 6, 2025
@maciejbaczmanski maciejbaczmanski merged commit 318f9ab into nrfconnect:master Mar 12, 2025
9 checks passed
@maciejbaczmanski maciejbaczmanski deleted the matter_zap_west_tools branch March 12, 2025 11:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants