diff options
Diffstat (limited to 'meta/recipes-devtools/rust')
| -rw-r--r-- | meta/recipes-devtools/rust/rust-cross-canadian.inc | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/meta/recipes-devtools/rust/rust-cross-canadian.inc b/meta/recipes-devtools/rust/rust-cross-canadian.inc index 4e2e051f1d..dbf997560b 100644 --- a/meta/recipes-devtools/rust/rust-cross-canadian.inc +++ b/meta/recipes-devtools/rust/rust-cross-canadian.inc | |||
| @@ -64,20 +64,6 @@ do_install () { | |||
| 64 | 64 | ||
| 65 | chown -R root.root ${D} | 65 | chown -R root.root ${D} |
| 66 | 66 | ||
| 67 | CARGO_ENV_SETUP_SH="${ENV_SETUP_DIR}/cargo.sh" | ||
| 68 | cat <<- EOF > "${CARGO_ENV_SETUP_SH}" | ||
| 69 | export CARGO_HOME="\$OECORE_TARGET_SYSROOT/home/cargo" | ||
| 70 | mkdir -p "\$CARGO_HOME" | ||
| 71 | # Init the default target once, it might be otherwise user modified. | ||
| 72 | if [ ! -f "\$CARGO_HOME/config" ]; then | ||
| 73 | touch "\$CARGO_HOME/config" | ||
| 74 | echo "[build]" >> "\$CARGO_HOME/config" | ||
| 75 | echo 'target = "'${RUST_TARGET_SYS}'"' >> "\$CARGO_HOME/config" | ||
| 76 | echo '# TARGET_SYS' >> "\$CARGO_HOME/config" | ||
| 77 | echo '[target.'${RUST_TARGET_SYS}']' >> "\$CARGO_HOME/config" | ||
| 78 | echo 'linker = "target-rust-ccld"' >> "\$CARGO_HOME/config" | ||
| 79 | fi | ||
| 80 | EOF | ||
| 81 | } | 67 | } |
| 82 | 68 | ||
| 83 | FILES:${PN} += "${base_prefix}/environment-setup.d" | 69 | FILES:${PN} += "${base_prefix}/environment-setup.d" |
