From b9986d9dc4e7ca47b3d07ae9ca5870196c5f19b6 Mon Sep 17 00:00:00 2001 From: Yuki Okushi Date: Mon, 9 Mar 2020 07:59:51 +0900 Subject: [PATCH] Add `riscv64gc-unknown-linux-gnu` image --- ci/azure.yml | 2 ++ ci/docker/riscv64gc-unknown-linux-gnu/Dockerfile | 12 ++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 ci/docker/riscv64gc-unknown-linux-gnu/Dockerfile diff --git a/ci/azure.yml b/ci/azure.yml index 52d1e479..6a2f6853 100644 --- a/ci/azure.yml +++ b/ci/azure.yml @@ -72,6 +72,8 @@ jobs: TARGET: powerpc64le-unknown-linux-gnu s390x-unknown-linux-gnu: TARGET: s390x-unknown-linux-gnu + riscv64gc-unknown-linux-gnu: + TARGET: riscv64gc-unknown-linux-gnu #wasm32-wasi # TARGET: wasm32-wasi sparc64-unknown-linux-gnu: diff --git a/ci/docker/riscv64gc-unknown-linux-gnu/Dockerfile b/ci/docker/riscv64gc-unknown-linux-gnu/Dockerfile new file mode 100644 index 00000000..2ab35b31 --- /dev/null +++ b/ci/docker/riscv64gc-unknown-linux-gnu/Dockerfile @@ -0,0 +1,12 @@ +FROM ubuntu:20.04 + +RUN apt-get update && apt-get install -y --no-install-recommends \ + gcc libc6-dev qemu-user ca-certificates \ + gcc-riscv64-linux-gnu libc6-dev-riscv64-cross \ + qemu-system-riscv64 linux-headers-generic + +ENV CARGO_TARGET_RISCV64GC_UNKNOWN_LINUX_GNU_LINKER=riscv64-linux-gnu-gcc \ + CARGO_TARGET_RISCV64GC_UNKNOWN_LINUX_GNU_RUNNER="qemu-riscv64 -L /usr/riscv64-linux-gnu" \ + CC_riscv64gc_unknown_linux_gnu=riscv64-linux-gnu-gcc \ + CFLAGS_riscv64gc_unknown_linux_gnu="-mabi=lp64d -fPIC" \ + PATH=$PATH:/rust/bin