rust.py 316 B

12345678910111213
  1. #
  2. # Copyright OpenEmbedded Contributors
  3. #
  4. # SPDX-License-Identifier: MIT
  5. #
  6. # Handle mismatches between `uname -m`-style output and Rust's arch names
  7. def arch_to_rust_arch(arch):
  8. if arch == "ppc64le":
  9. return "powerpc64le"
  10. if arch in ('riscv32', 'riscv64'):
  11. return arch + 'gc'
  12. return arch