summaryrefslogtreecommitdiffstats
path: root/meta/lib/oe/rust.py
blob: 185553eeeb2af0fc55bc3698864172389baa4f9b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#
# Copyright OpenEmbedded Contributors
#
# SPDX-License-Identifier: MIT
#

# Handle mismatches between `uname -m`-style output and Rust's arch names
def arch_to_rust_arch(arch):
    if arch == "ppc64le":
        return "powerpc64le"
    if arch in ('riscv32', 'riscv64'):
        return arch + 'gc'
    return arch