Skip to content

Minor build-script improvements #196

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 2 commits into from
Apr 30, 2025
Merged

Minor build-script improvements #196

merged 2 commits into from
Apr 30, 2025

Conversation

Rahix
Copy link
Owner

@Rahix Rahix commented Apr 29, 2025

Just two minor improvements I made while playing with the build-script code a bit.

Cc: @LuigiPiucco
Ref: #157

Rahix added 2 commits April 30, 2025 01:52
Place the DEVICE_PERIPHERALS into a separate function.  This will allow
adding additional patches with more ease.

Also, add an error when the patch could not be applied.  This will
safeguard against future unexpected changes in svd2rust code generation.
`anyhow` comes with a convenience type alias for `Result<T, anyhow::Error>`.
Use it where we can.
@Rahix Rahix added the buildsystem Related to generating the device-modules from ATDF files. label Apr 29, 2025
@Rahix Rahix merged commit a36b458 into main Apr 30, 2025
2 checks passed
@Rahix Rahix deleted the build-improvements branch April 30, 2025 00:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
buildsystem Related to generating the device-modules from ATDF files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant