aboutsummaryrefslogtreecommitdiff
path: root/libc/ci/docker/aarch64-unknown-linux-musl
diff options
context:
space:
mode:
authorDaniel Mueller <deso@posteo.net>2018-01-15 09:30:24 -0800
committerDaniel Mueller <deso@posteo.net>2018-01-15 09:30:24 -0800
commitd8a58488bd56ef9c09e167173124c3519bc7405d (patch)
treef52c843b4862a8ce80b3912805638be5846166fc /libc/ci/docker/aarch64-unknown-linux-musl
parent7e6a449f276cd85ebd9201ef1a62aff3bc4d1595 (diff)
downloadnitrocli-d8a58488bd56ef9c09e167173124c3519bc7405d.tar.gz
nitrocli-d8a58488bd56ef9c09e167173124c3519bc7405d.tar.bz2
Update libc crate to 0.2.36
Import subrepo libc/:libc at 16a0f4a3d6c836f88f50c58f5d0a74a32cbf0193
Diffstat (limited to 'libc/ci/docker/aarch64-unknown-linux-musl')
-rw-r--r--libc/ci/docker/aarch64-unknown-linux-musl/Dockerfile27
1 files changed, 27 insertions, 0 deletions
diff --git a/libc/ci/docker/aarch64-unknown-linux-musl/Dockerfile b/libc/ci/docker/aarch64-unknown-linux-musl/Dockerfile
new file mode 100644
index 0000000..e86c4c0
--- /dev/null
+++ b/libc/ci/docker/aarch64-unknown-linux-musl/Dockerfile
@@ -0,0 +1,27 @@
+FROM ubuntu:17.10
+
+RUN apt-get update && apt-get install -y --no-install-recommends \
+ gcc make libc6-dev git curl ca-certificates \
+ gcc-aarch64-linux-gnu qemu-user
+RUN curl https://www.musl-libc.org/releases/musl-1.1.16.tar.gz | \
+ tar xzf - && \
+ cd musl-1.1.16 && \
+ CC=aarch64-linux-gnu-gcc \
+ ./configure --prefix=/musl-aarch64 --enable-wrapper=yes && \
+ make install -j4 && \
+ cd .. && \
+ rm -rf musl-1.1.16 && \
+# Install linux kernel headers sanitized for use with musl
+ curl -L https://github.com/sabotage-linux/kernel-headers/archive/v3.12.6-5.tar.gz | \
+ tar xzf - && \
+ cd kernel-headers-3.12.6-5 && \
+ make ARCH=arm64 prefix=/musl-aarch64 install -j4 && \
+ cd .. && \
+ rm -rf kernel-headers-3.12.6-5
+
+# FIXME: shouldn't need the `-lgcc` here, shouldn't that be in libstd?
+ENV PATH=$PATH:/musl-aarch64/bin:/rust/bin \
+ CC_aarch64_unknown_linux_musl=musl-gcc \
+ RUSTFLAGS='-Clink-args=-lgcc' \
+ CARGO_TARGET_AARCH64_UNKNOWN_LINUX_MUSL_LINKER=musl-gcc \
+ CARGO_TARGET_AARCH64_UNKNOWN_LINUX_MUSL_RUNNER="qemu-aarch64 -L /musl-aarch64"