Skip to content

zephyr-build: Simplify dt-yaml syntax #93

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

Merged
merged 1 commit into from
Apr 18, 2025
Merged

zephyr-build: Simplify dt-yaml syntax #93

merged 1 commit into from
Apr 18, 2025

Conversation

d3zd3z
Copy link
Collaborator

@d3zd3z d3zd3z commented Apr 17, 2025

The Serde "tag" rules was being used for enums, which results in enums being generated in a somewhat awkward format. Remove this, and change the syntax of the dt-rust.yaml file to match. This typically results in changes like:

- type: instance
  value:
    raw:
      type: myself

to be simplified to just:

- !Instance
  raw: !Myself

The Serde "tag" rules was being used for enums, which results in enums
being generated in a somewhat awkward format.  Remove this, and change
the syntax of the dt-rust.yaml file to match.  This typically results in
changes like:

    - type: instance
      value:
        raw:
	  type: myself

to be simplified to just:

    - !Instance
      raw: !Myself

Signed-off-by: David Brown <[email protected]>
@d3zd3z d3zd3z requested review from teburd, cfriedt and ithinuel April 17, 2025 18:10
@d3zd3z d3zd3z merged commit 0de6f6c into main Apr 18, 2025
4 checks passed
@d3zd3z d3zd3z deleted the yaml-cleanup branch April 18, 2025 22:45
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.

3 participants