blob: 185553eeeb2af0fc55bc3698864172389baa4f9b [file] [log] [blame]
Patrick Williams92b42cb2022-09-03 06:53:57 -05001#
2# Copyright OpenEmbedded Contributors
3#
4# SPDX-License-Identifier: MIT
5#
6
Andrew Jefferyecdf5f12022-03-01 01:09:46 +10307# Handle mismatches between `uname -m`-style output and Rust's arch names
8def arch_to_rust_arch(arch):
9 if arch == "ppc64le":
10 return "powerpc64le"
Patrick Williams2390b1b2022-11-03 13:47:49 -050011 if arch in ('riscv32', 'riscv64'):
12 return arch + 'gc'
Andrew Jefferyecdf5f12022-03-01 01:09:46 +103013 return arch