]> git.lizzy.rs Git - rust.git/blob - src/ci/docker/dist-s390x-linux/Dockerfile
Merge branch 'refactor-select' of https://github.com/aravind-pg/rust into update...
[rust.git] / src / ci / docker / dist-s390x-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-s390x-linux/patches/ /tmp/patches/
20 COPY dist-s390x-linux/s390x-linux-gnu.config dist-s390x-linux/build-s390x-toolchain.sh /tmp/
21 RUN ./build-s390x-toolchain.sh
22
23 USER root
24
25 COPY scripts/sccache.sh /scripts/
26 RUN sh /scripts/sccache.sh
27
28 ENV PATH=$PATH:/x-tools/s390x-ibm-linux-gnu/bin
29
30 ENV \
31     CC_s390x_unknown_linux_gnu=s390x-ibm-linux-gnu-gcc \
32     AR_s390x_unknown_linux_gnu=s390x-ibm-linux-gnu-ar \
33     CXX_s390x_unknown_linux_gnu=s390x-ibm-linux-gnu-g++
34
35 ENV HOSTS=s390x-unknown-linux-gnu
36
37 ENV RUST_CONFIGURE_ARGS --enable-extended
38 ENV SCRIPT python2.7 ../x.py dist --host $HOSTS --target $HOSTS