summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarish Sadineni <Harish.Sadineni@windriver.com>2025-01-23 07:47:54 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-02-01 13:20:45 +0000
commit37fea972a6fafe360bfbb2d1ac472fa9e060c733 (patch)
tree721000c28c3cceaffcbd221177ca0e57f8d0adaf
parent166c3299b9f06cc1aca37c0b56be3abe11ab8107 (diff)
downloadpoky-37fea972a6fafe360bfbb2d1ac472fa9e060c733.tar.gz
rust: remove redundant cargo config file
YOCTO [#15061] The rust target and linker are getting setting from the sdk environment and so the config file is not needed. The redundant config file geneartion is removed. (From OE-Core rev: d5f78816d2ad0f3e43ce883eef199d1683cfcbb4) Signed-off-by: Harish Sadineni <Harish.Sadineni@windriver.com> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-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"