summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/recipes-devtools/rust/rust-cross-canadian.inc14
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 846dde4dc6..09e1b911a2 100644
--- a/meta/recipes-devtools/rust/rust-cross-canadian.inc
+++ b/meta/recipes-devtools/rust/rust-cross-canadian.inc
@@ -65,20 +65,6 @@ do_install () {
65 65
66 chown -R root.root ${D} 66 chown -R root.root ${D}
67 67
68 CARGO_ENV_SETUP_SH="${ENV_SETUP_DIR}/cargo.sh"
69 cat <<- EOF > "${CARGO_ENV_SETUP_SH}"
70 export CARGO_HOME="\$OECORE_TARGET_SYSROOT/home/cargo"
71 mkdir -p "\$CARGO_HOME"
72 # Init the default target once, it might be otherwise user modified.
73 if [ ! -f "\$CARGO_HOME/config" ]; then
74 touch "\$CARGO_HOME/config"
75 echo "[build]" >> "\$CARGO_HOME/config"
76 echo 'target = "'${RUST_TARGET_SYS}'"' >> "\$CARGO_HOME/config"
77 echo '# TARGET_SYS' >> "\$CARGO_HOME/config"
78 echo '[target.'${RUST_TARGET_SYS}']' >> "\$CARGO_HOME/config"
79 echo 'linker = "target-rust-ccld"' >> "\$CARGO_HOME/config"
80 fi
81 EOF
82} 68}
83 69
84FILES:${PN} += "${base_prefix}/environment-setup.d" 70FILES:${PN} += "${base_prefix}/environment-setup.d"