]> git.lizzy.rs Git - rust.git/blob - src/ci/docker/dist-armv7-linux/Dockerfile
Merge branch 'refactor-select' of https://github.com/aravind-pg/rust into update...
[rust.git] / src / ci / docker / dist-armv7-linux / Dockerfile
1 FROM ubuntu:16.04
2
3 COPY scripts/cross-apt-packages.sh /scripts/
4 RUN sh /scripts/cross-apt-packages.sh
5
6 # Ubuntu 16.04 (this container) ships with make 4, but something in the
7 # toolchains we build below chokes on that, so go back to make 3
8 COPY scripts/make3.sh /scripts/
9 RUN sh /scripts/make3.sh
10
11 COPY scripts/crosstool-ng.sh /scripts/
12 RUN sh /scripts/crosstool-ng.sh
13
14 COPY scripts/rustbuild-setup.sh /scripts/
15 RUN sh /scripts/rustbuild-setup.sh
16 USER rustbuild
17 WORKDIR /tmp
18
19 COPY dist-armv7-linux/build-toolchains.sh dist-armv7-linux/armv7-linux-gnueabihf.config /tmp/
20 RUN ./build-toolchains.sh
21
22 USER root
23
24 COPY scripts/sccache.sh /scripts/
25 RUN sh /scripts/sccache.sh
26
27 ENV PATH=$PATH:/x-tools/armv7-unknown-linux-gnueabihf/bin
28
29 ENV CC_armv7_unknown_linux_gnueabihf=armv7-unknown-linux-gnueabihf-gcc \
30     AR_armv7_unknown_linux_gnueabihf=armv7-unknown-linux-gnueabihf-ar \
31     CXX_armv7_unknown_linux_gnueabihf=armv7-unknown-linux-gnueabihf-g++
32
33 ENV HOSTS=armv7-unknown-linux-gnueabihf
34
35 ENV RUST_CONFIGURE_ARGS --enable-extended
36 ENV SCRIPT python2.7 ../x.py dist --host $HOSTS --target $HOSTS