1
0
mirror of https://github.com/kata-containers/kata-containers.git synced 2025-05-09 08:57:25 +00:00

build: Add riscv mapping for common.bash

While installing Rust and Golang in our CI workflow, `arch_to_golang`
and `arch_to_rust` are needed for inferring the correct arch string for
riscv64 architecture.

Signed-off-by: Ruoqing He <heruoqing@iscas.ac.cn>
This commit is contained in:
Ruoqing He 2025-02-25 23:15:48 +08:00
parent 62e2473c32
commit 562911e170

View File

@ -836,6 +836,7 @@ function arch_to_golang() {
case "${arch}" in
aarch64) echo "arm64";;
ppc64le) echo "${arch}";;
riscv64) echo "${arch}";;
x86_64) echo "amd64";;
s390x) echo "s390x";;
*) die "unsupported architecture: ${arch}";;
@ -849,6 +850,7 @@ function arch_to_rust() {
case "${arch}" in
aarch64) echo "${arch}";;
ppc64le) echo "powerpc64le";;
riscv64) echo "riscv64gc";;
x86_64) echo "${arch}";;
s390x) echo "${arch}";;
*) die "unsupported architecture: ${arch}";;