]> git.proxmox.com Git - rustc.git/blob - src/ci/docker/dist-powerpc64le-linux/Dockerfile
New upstream version 1.45.0+dfsg1
[rustc.git] / src / ci / docker / 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 dist-powerpc64le-linux/shared.sh 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 ENV \
29 AR_powerpc64le_unknown_linux_gnu=powerpc64le-linux-gnu-ar \
30 CC_powerpc64le_unknown_linux_gnu=powerpc64le-linux-gnu-gcc \
31 CXX_powerpc64le_unknown_linux_gnu=powerpc64le-linux-gnu-g++
32
33 ENV HOSTS=powerpc64le-unknown-linux-gnu
34
35 ENV RUST_CONFIGURE_ARGS --enable-extended --disable-docs
36 ENV SCRIPT python3 ../x.py dist --host $HOSTS --target $HOSTS