summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Kiernan <alex.kiernan@gmail.com>2023-12-01 18:34:19 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-12-04 11:23:37 +0000
commitde401f80ae4f2944942ee472b84b0564b1b3807e (patch)
tree2233f4dbadf290ed8bbd0fb191018dec7c79a150
parent95d8a12b315c34d496228da188bc30568e724ee4 (diff)
downloadpoky-de401f80ae4f2944942ee472b84b0564b1b3807e.tar.gz
rust: Drop targets and hosts override magic
`targets` and `hosts` could be overridden prior to 0a01b5ab973e ("rust-cross-canadian: Simplify and fix"), that commit deleted this usage, remove the remnant of it from here. (From OE-Core rev: 6c93a71a9855cb0231d2f90f0412b6a49e3b1d99) Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-devtools/rust/rust_1.70.0.bb8
1 files changed, 2 insertions, 6 deletions
diff --git a/meta/recipes-devtools/rust/rust_1.70.0.bb b/meta/recipes-devtools/rust/rust_1.70.0.bb
index 6a28dc926e..3d176e54c1 100644
--- a/meta/recipes-devtools/rust/rust_1.70.0.bb
+++ b/meta/recipes-devtools/rust/rust_1.70.0.bb
@@ -154,13 +154,9 @@ python do_configure() {
154 154
155 config.set("build", "vendor", e(True)) 155 config.set("build", "vendor", e(True))
156 156
157 if not "targets" in locals(): 157 config.set("build", "target", e([d.getVar("RUST_TARGET_SYS")]))
158 targets = [d.getVar("RUST_TARGET_SYS")]
159 config.set("build", "target", e(targets))
160 158
161 if not "hosts" in locals(): 159 config.set("build", "host", e([d.getVar("RUST_HOST_SYS")]))
162 hosts = [d.getVar("RUST_HOST_SYS")]
163 config.set("build", "host", e(hosts))
164 160
165 # We can't use BUILD_SYS since that is something the rust snapshot knows 161 # We can't use BUILD_SYS since that is something the rust snapshot knows
166 # nothing about when trying to build some stage0 tools (like fabricate) 162 # nothing about when trying to build some stage0 tools (like fabricate)