1
0
mirror of https://git.yoctoproject.org/poky synced 2026-05-09 17:39:31 +00:00

rust-common/rust: Improve bootstrap BUILD_SYS handling

Move the "unknown" vendor workaround used during bootstrap to a
central location so it is applied consistently to all RUST_BUILD_SYS
values rather than some subset.

(From OE-Core rev: d02c28b2219d736c9598a13fead7a03eaa3256a6)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Richard Purdie
2022-08-05 13:25:46 +01:00
parent b1d8d2a3bf
commit 1c8444bd38
2 changed files with 8 additions and 4 deletions
+5
View File
@@ -68,6 +68,11 @@ def rust_base_triple(d, thing):
else:
arch = oe.rust.arch_to_rust_arch(d.getVar('{}_ARCH'.format(thing)))
# When bootstrapping rust-native, BUILD must be the same as upstream snapshot tarballs
bpn = d.getVar('BPN')
if thing == "BUILD" and bpn in ["rust"]:
return arch + "-unknown-linux-gnu"
# All the Yocto targets are Linux and are 'unknown'
vendor = "-unknown"
os = d.getVar('{}_OS'.format(thing))