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:44:20 +0100 |
| commit | 1c8444bd380d8caff4f09a02af2c15be928f5ae6 (patch) | |
| tree | 8854a17cd56b54decf17a1a52850200cc986ea9d /meta/classes | |
| parent | b1d8d2a3bfe40d83a651448bcd0eeb01434b7ad1 (diff) | |
| download | poky-1c8444bd380d8caff4f09a02af2c15be928f5ae6.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.
(From OE-Core rev: d02c28b2219d736c9598a13fead7a03eaa3256a6)
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): | |||
| 68 | else: | 68 | else: |
| 69 | arch = oe.rust.arch_to_rust_arch(d.getVar('{}_ARCH'.format(thing))) | 69 | arch = oe.rust.arch_to_rust_arch(d.getVar('{}_ARCH'.format(thing))) |
| 70 | 70 | ||
| 71 | # When bootstrapping rust-native, BUILD must be the same as upstream snapshot tarballs | ||
| 72 | bpn = d.getVar('BPN') | ||
| 73 | if thing == "BUILD" and bpn in ["rust"]: | ||
| 74 | return arch + "-unknown-linux-gnu" | ||
| 75 | |||
| 71 | # All the Yocto targets are Linux and are 'unknown' | 76 | # All the Yocto targets are Linux and are 'unknown' |
| 72 | vendor = "-unknown" | 77 | vendor = "-unknown" |
| 73 | os = d.getVar('{}_OS'.format(thing)) | 78 | os = d.getVar('{}_OS'.format(thing)) |
