mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-17 15:38:00 +00:00
virtiofsd: Enable build for RISC-V
With this change, `virtiofsd` (gnu target) could be built and then to be used with other components. Depends: #10741 Fixes: #10739 Signed-off-by: Ruoqing He <heruoqing@iscas.ac.cn>
This commit is contained in:
parent
c018a1cc61
commit
7e76ef587a
@ -67,6 +67,7 @@ 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";;
|
||||
@ -200,6 +201,9 @@ get_virtiofsd_image_name() {
|
||||
"ppc64le")
|
||||
libc="gnu"
|
||||
;;
|
||||
"riscv64")
|
||||
libc="gnu"
|
||||
;;
|
||||
"s390x")
|
||||
libc="gnu"
|
||||
;;
|
||||
|
@ -39,6 +39,9 @@ case ${ARCH} in
|
||||
"ppc64le")
|
||||
libc="gnu"
|
||||
;;
|
||||
"riscv64")
|
||||
libc="gnu"
|
||||
;;
|
||||
"s390x")
|
||||
libc="gnu"
|
||||
;;
|
||||
|
@ -34,6 +34,7 @@ RUN ARCH=$(uname -m); \
|
||||
case "${ARCH}" in \
|
||||
"aarch64") rust_arch="${ARCH}"; libc="musl"; arch_libc="" ;; \
|
||||
"ppc64le") rust_arch="powerpc64le"; libc="gnu"; arch_libc=${rust_arch}-linux-${libc}; extra_rust_flags="" ;; \
|
||||
"riscv64") rust_arch="riscv64gc"; libc="gnu"; arch_libc=${ARCH}-linux-${libc}; extra_rust_flags="" ;; \
|
||||
"x86_64") rust_arch="${ARCH}"; libc="musl"; arch_libc="" ;; \
|
||||
"s390x") rust_arch="${ARCH}"; libc="gnu"; arch_libc=${rust_arch}-linux-${libc}; extra_rust_flags="" ;; \
|
||||
*) echo "Unsupported architecture: ${ARCH}" && exit 1 ;; \
|
||||
|
Loading…
Reference in New Issue
Block a user