-
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.
- Loading branch information
Adam Simpson
committed
Aug 3, 2020
1 parent
32657f7
commit 79d5ffa
Showing
3 changed files
with
7 additions
and
7 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
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,13 +1,13 @@ | ||
#!/bin/sh | ||
|
||
rustup target add "$TARGET" | ||
rustup target add "${TARGET}" | ||
|
||
# Download the Raspberry Pi cross-compilation toolchain if needed | ||
if [ "$TARGET" = "arm-unknown-linux-gnueabihf" ] | ||
if [ "${TARGET}" = "arm-unknown-linux-gnueabihf" ] | ||
then | ||
git clone --depth=1 https://github.com/raspberrypi/tools.git /tmp/tools; | ||
export PATH=/tmp/tools/arm-bcm2708/arm-linux-gnueabihf/bin:$PATH; | ||
export PATH=/tmp/tools/arm-bcm2708/arm-linux-gnueabihf/bin:${PATH}; | ||
export CARGO_TARGET_ARM_UNKNOWN_LINUX_GNUEABIHF_LINKER=arm-linux-gnueabihf-gcc | ||
fi | ||
|
||
cargo build --target="$TARGET" --release | ||
cargo build --target="${TARGET}" --release |