diff options
Diffstat (limited to 'meta/lib/oe/rust.py')
-rw-r--r-- | meta/lib/oe/rust.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/meta/lib/oe/rust.py b/meta/lib/oe/rust.py new file mode 100644 index 0000000000..185553eeeb --- /dev/null +++ b/meta/lib/oe/rust.py | |||
@@ -0,0 +1,13 @@ | |||
1 | # | ||
2 | # Copyright OpenEmbedded Contributors | ||
3 | # | ||
4 | # SPDX-License-Identifier: MIT | ||
5 | # | ||
6 | |||
7 | # Handle mismatches between `uname -m`-style output and Rust's arch names | ||
8 | def arch_to_rust_arch(arch): | ||
9 | if arch == "ppc64le": | ||
10 | return "powerpc64le" | ||
11 | if arch in ('riscv32', 'riscv64'): | ||
12 | return arch + 'gc' | ||
13 | return arch | ||