Skip to content

Commit

Permalink
Use Bootlin toolchain.
Browse files Browse the repository at this point in the history
  • Loading branch information
reitermarkus committed Jan 1, 2019
1 parent bb57aad commit 297abb8
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 12 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ worst, "hang" (never terminate).
| `aarch64-unknown-linux-musl` | 1.1.20 | 6.3.0 | 1.0.2p | | 2.8.0 ||
| `arm-linux-androideabi` [5] | N/A | 4.9 | 1.0.2p || N/A ||
| `arm-unknown-linux-gnueabi` | 2.19 | 4.8.2 | 1.0.2p || 2.8.0 ||
| `arm-unknown-linux-gnueabihf` | 2.19 | 4.8.3 | 1.0.2p || 2.8.0 ||
| `arm-unknown-linux-gnueabihf` | 2.27 | 7.3.0 | 1.0.2p || 2.10 ||
| `arm-unknown-linux-musleabi` | 1.1.20 | 6.3.0 | 1.0.2p | | 2.8.0 ||
| `arm-unknown-linux-musleabihf` | 1.1.20 | 6.3.0 | 1.0.2p | | 2.8.0 ||
| `armv5te-unknown-linux-musleabi` | 1.1.20 | 6.3.0 | N/A | | 2.8.0 ||
Expand Down
25 changes: 14 additions & 11 deletions docker/arm-unknown-linux-gnueabihf/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,26 +24,29 @@ COPY cmake.sh /
RUN apt-get purge --auto-remove -y cmake && \
bash /cmake.sh 3.5.1

RUN git clone --depth 1 https://github.com/raspberrypi/tools.git /pi-tools && \
mv /pi-tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64 /usr/arm-linux-gnueabihf && \
mv /pi-tools/arm-bcm2708/arm-bcm2708hardfp-linux-gnueabi/arm-bcm2708hardfp-linux-gnueabi/sysroot /usr/arm-linux-gnueabihf/sysroot && \
rm -r /pi-tools
RUN mkdir /usr/arm-linux-gnueabihf && \
apt-get install -y --no-install-recommends curl && \
cd /usr/arm-linux-gnueabihf && \
curl -L https://toolchains.bootlin.com/downloads/releases/toolchains/armv6-eabihf/tarballs/armv6-eabihf--glibc--stable-2018.11-1.tar.bz2 | \
tar --strip-components 1 -xj && \
apt-get purge --auto-remove -y curl

COPY openssl.sh qemu.sh /

RUN bash /qemu.sh arm
ENV PATH /usr/arm-linux-gnueabihf/bin:$PATH

COPY openssl.sh qemu.sh /
RUN apt-get install -y --no-install-recommends \
libc6-dev-armhf-cross && \
bash /openssl.sh linux-armv4 arm-linux-gnueabihf- && \
bash /qemu.sh arm
bash /openssl.sh linux-armv4 arm-linux-

ENV CARGO_TARGET_ARM_UNKNOWN_LINUX_GNUEABIHF_LINKER=arm-linux-gnueabihf-gcc \
ENV CARGO_TARGET_ARM_UNKNOWN_LINUX_GNUEABIHF_LINKER=arm-linux-gcc \
CARGO_TARGET_ARM_UNKNOWN_LINUX_GNUEABIHF_RUNNER=qemu-arm \
CC_arm_unknown_linux_gnueabihf=arm-linux-gnueabihf-gcc \
CXX_arm_unknown_linux_gnueabihf=arm-linux-gnueabihf-g++ \
CC_arm_unknown_linux_gnueabihf=arm-linux-gcc \
CXX_arm_unknown_linux_gnueabihf=arm-linux-g++ \
OPENSSL_DIR=/openssl \
OPENSSL_INCLUDE_DIR=/openssl/include \
OPENSSL_LIB_DIR=/openssl/lib \
QEMU_LD_PREFIX=/usr/arm-linux-gnueabihf \
LD_LIBRARY_PATH=/usr/arm-linux-gnueabihf/lib:/usr/arm-linux-gnueabihf/sysroot/lib \
LD_LIBRARY_PATH=/usr/arm-linux-gnueabihf/lib:/usr/arm-linux-gnueabihf/arm-buildroot-linux-gnueabihf/lib \
RUST_TEST_THREADS=1

0 comments on commit 297abb8

Please sign in to comment.