summaryrefslogtreecommitdiffstats
path: root/third_party/rust/libc/ci/docker/mipsel-unknown-linux-musl/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/rust/libc/ci/docker/mipsel-unknown-linux-musl/Dockerfile')
-rw-r--r--third_party/rust/libc/ci/docker/mipsel-unknown-linux-musl/Dockerfile14
1 files changed, 14 insertions, 0 deletions
diff --git a/third_party/rust/libc/ci/docker/mipsel-unknown-linux-musl/Dockerfile b/third_party/rust/libc/ci/docker/mipsel-unknown-linux-musl/Dockerfile
new file mode 100644
index 000000000..bf7b45b75
--- /dev/null
+++ b/third_party/rust/libc/ci/docker/mipsel-unknown-linux-musl/Dockerfile
@@ -0,0 +1,14 @@
+FROM ubuntu:16.04
+
+RUN apt-get update
+RUN apt-get install -y --no-install-recommends \
+ gcc libc6-dev qemu-user ca-certificates qemu-system-mips curl \
+ bzip2
+
+RUN mkdir /toolchain
+RUN curl -L https://downloads.openwrt.org/snapshots/trunk/malta/generic/OpenWrt-Toolchain-malta-le_gcc-5.3.0_musl-1.1.15.Linux-x86_64.tar.bz2 | \
+ tar xjf - -C /toolchain --strip-components=2
+
+ENV PATH=$PATH:/rust/bin:/toolchain/bin \
+ CC_mipsel_unknown_linux_musl=mipsel-openwrt-linux-gcc \
+ CARGO_TARGET_MIPSEL_UNKNOWN_LINUX_MUSL_LINKER=mipsel-openwrt-linux-gcc