diff options
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)) |
