]> git.proxmox.com Git - rustc.git/blame - src/ci/docker/host-x86_64/dist-powerpc64-linux/Dockerfile
Merge tag 'debian/1.52.1+dfsg1-1_exp2' into proxmox/buster
[rustc.git] / src / ci / docker / host-x86_64 / dist-powerpc64-linux / Dockerfile
CommitLineData
32a655c1
SL
1FROM ubuntu:16.04
2
041b39d2
XL
3COPY scripts/cross-apt-packages.sh /scripts/
4RUN sh /scripts/cross-apt-packages.sh
5
32a655c1 6
041b39d2 7# Ubuntu 16.04 (this container) ships with make 4, but something in the
32a655c1 8# toolchains we build below chokes on that, so go back to make 3
041b39d2
XL
9COPY scripts/make3.sh /scripts/
10RUN sh /scripts/make3.sh
32a655c1 11
041b39d2
XL
12COPY scripts/crosstool-ng.sh /scripts/
13RUN sh /scripts/crosstool-ng.sh
32a655c1 14
041b39d2
XL
15COPY scripts/rustbuild-setup.sh /scripts/
16RUN sh /scripts/rustbuild-setup.sh
32a655c1
SL
17USER rustbuild
18WORKDIR /tmp
19
f035d41b
XL
20COPY host-x86_64/dist-powerpc64-linux/patches/ /tmp/patches/
21COPY host-x86_64/dist-powerpc64-linux/shared.sh host-x86_64/dist-powerpc64-linux/powerpc64-linux-gnu.config host-x86_64/dist-powerpc64-linux/build-powerpc64-toolchain.sh /tmp/
32a655c1
SL
22RUN ./build-powerpc64-toolchain.sh
23
24USER root
25
041b39d2
XL
26COPY scripts/sccache.sh /scripts/
27RUN sh /scripts/sccache.sh
32a655c1 28
6a06907d
XL
29COPY scripts/cmake.sh /scripts/
30RUN /scripts/cmake.sh
31
32a655c1
SL
32ENV PATH=$PATH:/x-tools/powerpc64-unknown-linux-gnu/bin
33
34ENV \
35 AR_powerpc64_unknown_linux_gnu=powerpc64-unknown-linux-gnu-ar \
36 CC_powerpc64_unknown_linux_gnu=powerpc64-unknown-linux-gnu-gcc \
cc61c64b 37 CXX_powerpc64_unknown_linux_gnu=powerpc64-unknown-linux-gnu-g++
32a655c1
SL
38
39ENV HOSTS=powerpc64-unknown-linux-gnu
32a655c1 40
0531ce1d 41ENV RUST_CONFIGURE_ARGS --enable-extended --disable-docs
ba9703b0 42ENV SCRIPT python3 ../x.py dist --host $HOSTS --target $HOSTS