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:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user