-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cargo config.toml instead of cargo config
- Loading branch information
Showing
2 changed files
with
28 additions
and
0 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,25 @@ | ||
diff --git a/meta/recipes-devtools/rust/rust-cross-canadian.inc b/meta/recipes-devtools/rust/rust-cross-canadian.inc | ||
index 5b88381f11..9d2726ca1f 100644 | ||
--- a/meta/recipes-devtools/rust/rust-cross-canadian.inc | ||
+++ b/meta/recipes-devtools/rust/rust-cross-canadian.inc | ||
@@ -73,13 +73,13 @@ do_install () { | ||
export CARGO_HOME="\$OECORE_TARGET_SYSROOT/home/cargo" | ||
mkdir -p "\$CARGO_HOME" | ||
# Init the default target once, it might be otherwise user modified. | ||
- if [ ! -f "\$CARGO_HOME/config" ]; then | ||
- touch "\$CARGO_HOME/config" | ||
- echo "[build]" >> "\$CARGO_HOME/config" | ||
- echo 'target = "'${RUST_TARGET_SYS}'"' >> "\$CARGO_HOME/config" | ||
- echo '# TARGET_SYS' >> "\$CARGO_HOME/config" | ||
- echo '[target.'${RUST_TARGET_SYS}']' >> "\$CARGO_HOME/config" | ||
- echo 'linker = "target-rust-ccld"' >> "\$CARGO_HOME/config" | ||
+ if [ ! -f "\$CARGO_HOME/config.toml" ]; then | ||
+ touch "\$CARGO_HOME/config.toml" | ||
+ echo "[build]" >> "\$CARGO_HOME/config.toml" | ||
+ echo 'target = "'${RUST_TARGET_SYS}'"' >> "\$CARGO_HOME/config.toml" | ||
+ echo '# TARGET_SYS' >> "\$CARGO_HOME/config.toml" | ||
+ echo '[target.'${RUST_TARGET_SYS}']' >> "\$CARGO_HOME/config.toml" | ||
+ echo 'linker = "target-rust-ccld"' >> "\$CARGO_HOME/config.toml" | ||
fi | ||
|
||
# Keep the below off as long as HTTP/2 is disabled. |