diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-08-05 13:25:46 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-08-08 15:41:36 +0100 |
commit | d02c28b2219d736c9598a13fead7a03eaa3256a6 (patch) | |
tree | 31046fc91ca4f29b66f3f48c429e39a858a0dfc6 /meta/classes | |
parent | 9160e4a37561d8ac882057450a818621bec13bed (diff) | |
download | openembedded-core-contrib-d02c28b2219d736c9598a13fead7a03eaa3256a6.tar.gz |
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.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/rust-common.bbclass | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/classes/rust-common.bbclass b/meta/classes/rust-common.bbclass index adcf96f0cd..f2e99493fe 100644 --- a/meta/classes/rust-common.bbclass +++ b/meta/classes/rust-common.bbclass @@ -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)) |