summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r--meta/recipes-devtools/rust/rust-cross-canadian.inc8
1 files changed, 4 insertions, 4 deletions
diff --git a/meta/recipes-devtools/rust/rust-cross-canadian.inc b/meta/recipes-devtools/rust/rust-cross-canadian.inc
index 77d45a37a3..7bf75a4712 100644
--- a/meta/recipes-devtools/rust/rust-cross-canadian.inc
+++ b/meta/recipes-devtools/rust/rust-cross-canadian.inc
@@ -37,17 +37,17 @@ do_install () {
37 37
38 ENV_SETUP_DIR=${D}${base_prefix}/environment-setup.d 38 ENV_SETUP_DIR=${D}${base_prefix}/environment-setup.d
39 mkdir "${ENV_SETUP_DIR}" 39 mkdir "${ENV_SETUP_DIR}"
40 ENV_SETUP_SH="${ENV_SETUP_DIR}/rust.sh" 40 RUST_ENV_SETUP_SH="${ENV_SETUP_DIR}/rust.sh"
41 41
42 cat <<- EOF > "${ENV_SETUP_SH}" 42 cat <<- EOF > "${RUST_ENV_SETUP_SH}"
43 export RUSTFLAGS="--sysroot=\$OECORE_TARGET_SYSROOT/usr -C link-arg=--sysroot=\$OECORE_TARGET_SYSROOT" 43 export RUSTFLAGS="--sysroot=\$OECORE_TARGET_SYSROOT/usr -C link-arg=--sysroot=\$OECORE_TARGET_SYSROOT"
44 export RUST_TARGET_PATH="\$OECORE_NATIVE_SYSROOT/usr/lib/${TARGET_SYS}/rustlib" 44 export RUST_TARGET_PATH="\$OECORE_NATIVE_SYSROOT/usr/lib/${TARGET_SYS}/rustlib"
45 EOF 45 EOF
46 46
47 chown -R root.root ${D} 47 chown -R root.root ${D}
48 48
49 ENV_SETUP_SH="${ENV_SETUP_DIR}/cargo.sh" 49 CARGO_ENV_SETUP_SH="${ENV_SETUP_DIR}/cargo.sh"
50 cat <<- EOF > "${ENV_SETUP_SH}" 50 cat <<- EOF > "${CARGO_ENV_SETUP_SH}"
51 export CARGO_HOME="\$OECORE_TARGET_SYSROOT/home/cargo" 51 export CARGO_HOME="\$OECORE_TARGET_SYSROOT/home/cargo"
52 mkdir -p "\$CARGO_HOME" 52 mkdir -p "\$CARGO_HOME"
53 # Init the default target once, it might be otherwise user modified. 53 # Init the default target once, it might be otherwise user modified.