summaryrefslogtreecommitdiff
path: root/ci/docker/riscv64gc-unknown-linux-gnu/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'ci/docker/riscv64gc-unknown-linux-gnu/Dockerfile')
-rw-r--r--ci/docker/riscv64gc-unknown-linux-gnu/Dockerfile12
1 files changed, 12 insertions, 0 deletions
diff --git a/ci/docker/riscv64gc-unknown-linux-gnu/Dockerfile b/ci/docker/riscv64gc-unknown-linux-gnu/Dockerfile
new file mode 100644
index 0000000000..2ab35b317f
--- /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