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

Add regen all script #4180

Merged
merged 2 commits into from
Dec 11, 2020
Merged

Conversation

jepenven-silabs
Copy link
Contributor

Problem

Generating all ZCL files per example is a long and tedious task that will grow with the number of examples.

Summary of Changes

This script will generate all ZAP templates for each examples automatically. It will search for *.zap files in the examples directory and then call the zap_generate.sh script. Useful when one is modifying the zap templates and want to update all generated files at once.

Add-on to #3637

Copy link
Contributor

@vivien-apple vivien-apple left a comment

Choose a reason for hiding this comment

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

Looks good to me. One cool thing would be to automatically call clang-format -I on the gen/ folders if clang-format is available. It allows to spot the differences much more easily.
But that's a nit since I guess this is out of scope for this PR.

scripts/tools/zap_regen_all.py Outdated Show resolved Hide resolved
@mspang mspang merged commit fd1da07 into project-chip:master Dec 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants