summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools
diff options
context:
space:
mode:
authorPeter Bergin <peter@berginkonsult.se>2022-08-23 13:02:27 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-08-25 11:08:06 +0100
commit0823b7bc49365ed20dfad628e8c991d591ccf960 (patch)
tree2cd264e33126b0f318ebdd8e4cd24dfe0c15471d /meta/recipes-devtools
parentfa1246b0990e51c468041a68ab0b184abf566160 (diff)
downloadpoky-0823b7bc49365ed20dfad628e8c991d591ccf960.tar.gz
rust-cross-canadian: rename shell variables for easier appends
Make unique shell variable names for cargo and rust setup scripts. This change will make it easier to append to the scripts in a bbappend file by using the variable for the script. Before this change it was only possible for the last script as they shared the same variable name. (From OE-Core rev: 74307f57ad0b3c538be0add11028e4e6199a7662) Signed-off-by: Peter Bergin <peter@berginkonsult.se> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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.