-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Configure building Rust project for Raspberry Pi (#20)
- Add Cargo config to set build target platform and linker - Include setup instructions in README - Add arm-linux linker installation instructions for macOS, Windows, Linux - Update checks workflow to cross-compile during build - Add instructions for cross-compiling with cross - Specify default target for cross in `Cross.toml` --------- Co-authored-by: Sam Der <[email protected]>
- Loading branch information
1 parent
f4b0d52
commit 04177bd
Showing
4 changed files
with
110 additions
and
6 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
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Configuration to cross-compile for Raspberry Pi | ||
# Uncomment lines as needed | ||
|
||
[build] | ||
# target = "armv7-unknown-linux-gnueabihf" | ||
|
||
[target.armv7-unknown-linux-gnueabihf] | ||
# linker = "armv7-unknown-linux-gnueabihf-gcc" | ||
# linker = "arm-none-linux-gnueabihf-gcc" |
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[build] | ||
default-target = "armv7-unknown-linux-gnueabihf" |
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