rust: Drop targets and hosts override magic

`targets` and `hosts` could be overridden prior to 0a01b5ab97
("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>
This commit is contained in:
Alex Kiernan
2023-12-01 18:34:19 +00:00
committed by Richard Purdie
parent 95d8a12b31
commit de401f80ae

View File

@@ -154,13 +154,9 @@ python do_configure() {
config.set("build", "vendor", e(True))
if not "targets" in locals():
targets = [d.getVar("RUST_TARGET_SYS")]
config.set("build", "target", e(targets))
config.set("build", "target", e([d.getVar("RUST_TARGET_SYS")]))
if not "hosts" in locals():
hosts = [d.getVar("RUST_HOST_SYS")]
config.set("build", "host", e(hosts))
config.set("build", "host", e([d.getVar("RUST_HOST_SYS")]))
# We can't use BUILD_SYS since that is something the rust snapshot knows
# nothing about when trying to build some stage0 tools (like fabricate)