]> git.lizzy.rs Git - rust.git/blob - src/ci/docker/host-x86_64/dist-powerpc64le-linux/Dockerfile
Add `x.sh` and `x.ps1` shell scripts
[rust.git] / src / ci / docker / host-x86_64 / dist-powerpc64le-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 USER root
20
21 RUN apt-get install -y --no-install-recommends rpm2cpio cpio
22 COPY host-x86_64/dist-powerpc64le-linux/shared.sh host-x86_64/dist-powerpc64le-linux/build-powerpc64le-toolchain.sh /tmp/
23 RUN ./build-powerpc64le-toolchain.sh
24
25 COPY scripts/sccache.sh /scripts/
26 RUN sh /scripts/sccache.sh
27
28 COPY scripts/cmake.sh /scripts/
29 RUN /scripts/cmake.sh
30
31 ENV \
32     AR_powerpc64le_unknown_linux_gnu=powerpc64le-linux-gnu-ar \
33     CC_powerpc64le_unknown_linux_gnu=powerpc64le-linux-gnu-gcc \
34     CXX_powerpc64le_unknown_linux_gnu=powerpc64le-linux-gnu-g++
35
36 ENV HOSTS=powerpc64le-unknown-linux-gnu
37
38 ENV RUST_CONFIGURE_ARGS --enable-extended --disable-docs
39 ENV SCRIPT python3 ../x.py dist --host $HOSTS --target $HOSTS