-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Automate the build system with a
build.rs
This replaces the AoT processing we did to generate the Rust modules locally. It generates them on the fly at build-time, and only for the selected MCU. The process is mostly the same, just automated. Some things became unnecessary though, such as the `modrs.patch`. `form` is no longer run, in order to minimize the number of files and directories, but rustfmt is, so that the user can read the source from generated documentation pages. The patches were updated to not have the `_svd` key, since that's now handled by the build script. Those that ended up empty were removed.
- Loading branch information
1 parent
f45fbf1
commit 372a7cf
Showing
50 changed files
with
372 additions
and
264 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,3 @@ | ||
/target/ | ||
/macros/target/ | ||
**/*.rs.bk | ||
Cargo.lock | ||
|
||
svd/ | ||
.deps/ | ||
src/devices/*/* | ||
src/generic.rs | ||
__pycache__/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.