summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorAndrew Jeffery <andrew@aj.id.au>2022-03-01 01:09:47 +1030
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-03-02 18:44:17 +0000
commit73272156e66a33dad4f00a2badc4306aaac400f6 (patch)
tree76c2b979e4e84a84f13dd9b4cc17783408edf1b2 /meta/classes
parent102e4c029e30aba78e4045ae06115096870f036f (diff)
downloadpoky-73272156e66a33dad4f00a2badc4306aaac400f6.tar.gz
rust: Introduce RUST_BUILD_ARCH
RUST_BUILD_ARCH contains the arch_to_rust_arch()-translated value of BUILD_ARCH. This is necessary to acquire the correct snapshot artifacts under Linux where `uname -m` reports "ppc64le" rather than "powerpc64le". Change-Id: I6aec23aced8e1c6f0bfc46fe52531b0c16bcf687 (From OE-Core rev: c13afbade8d480807b9de70c56dcd650496f06b2) Signed-off-by: Andrew Jeffery <andrew@aj.id.au> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/rust-common.bbclass4
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/classes/rust-common.bbclass b/meta/classes/rust-common.bbclass
index 8cfe864ca3..65ad677499 100644
--- a/meta/classes/rust-common.bbclass
+++ b/meta/classes/rust-common.bbclass
@@ -89,6 +89,10 @@ def rust_base_triple(d, thing):
89 libc = bb.utils.contains('TUNE_FEATURES', 'callconvention-hard', 'hf', '', d) 89 libc = bb.utils.contains('TUNE_FEATURES', 'callconvention-hard', 'hf', '', d)
90 return arch + vendor + '-' + os + libc 90 return arch + vendor + '-' + os + libc
91 91
92
93# In some cases uname and the toolchain differ on their idea of the arch name
94RUST_BUILD_ARCH = "${@oe.rust.arch_to_rust_arch(d.getVar('BUILD_ARCH'))}"
95
92# Naming explanation 96# Naming explanation
93# Yocto 97# Yocto
94# - BUILD_SYS - Yocto triple of the build environment 98# - BUILD_SYS - Yocto triple of the build environment