Skip to content

Minor build-script improvements#196

Merged
Rahix merged 2 commits intomainfrom
build-improvements
Apr 30, 2025
Merged

Minor build-script improvements#196
Rahix merged 2 commits intomainfrom
build-improvements

Conversation

@Rahix
Copy link
Copy Markdown
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