diff options
| author | Andrew Jeffery <andrew@aj.id.au> | 2022-03-01 01:09:47 +1030 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-03-02 18:44:17 +0000 |
| commit | 73272156e66a33dad4f00a2badc4306aaac400f6 (patch) | |
| tree | 76c2b979e4e84a84f13dd9b4cc17783408edf1b2 /meta/recipes-devtools/rust/rust.inc | |
| parent | 102e4c029e30aba78e4045ae06115096870f036f (diff) | |
| download | poky-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/recipes-devtools/rust/rust.inc')
| -rw-r--r-- | meta/recipes-devtools/rust/rust.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-devtools/rust/rust.inc b/meta/recipes-devtools/rust/rust.inc index 1d6f99afad..f39228e3c0 100644 --- a/meta/recipes-devtools/rust/rust.inc +++ b/meta/recipes-devtools/rust/rust.inc | |||
| @@ -27,7 +27,7 @@ CARGO_DISABLE_BITBAKE_VENDORING = "1" | |||
| 27 | 27 | ||
| 28 | # We can't use RUST_BUILD_SYS here because that may be "musl" if | 28 | # We can't use RUST_BUILD_SYS here because that may be "musl" if |
| 29 | # TCLIBC="musl". Snapshots are always -unknown-linux-gnu | 29 | # TCLIBC="musl". Snapshots are always -unknown-linux-gnu |
| 30 | SNAPSHOT_BUILD_SYS = "${BUILD_ARCH}-unknown-linux-gnu" | 30 | SNAPSHOT_BUILD_SYS = "${RUST_BUILD_ARCH}-unknown-linux-gnu" |
| 31 | setup_cargo_environment () { | 31 | setup_cargo_environment () { |
| 32 | # The first step is to build bootstrap and some early stage tools, | 32 | # The first step is to build bootstrap and some early stage tools, |
| 33 | # these are build for the same target as the snapshot, e.g. | 33 | # these are build for the same target as the snapshot, e.g. |
