]>
Commit | Line | Data |
---|---|---|
32a655c1 SL |
1 | FROM ubuntu:16.04 |
2 | ||
041b39d2 XL |
3 | COPY scripts/cross-apt-packages.sh /scripts/ |
4 | RUN 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 |
9 | COPY scripts/make3.sh /scripts/ |
10 | RUN sh /scripts/make3.sh | |
32a655c1 | 11 | |
041b39d2 XL |
12 | COPY scripts/crosstool-ng.sh /scripts/ |
13 | RUN sh /scripts/crosstool-ng.sh | |
32a655c1 | 14 | |
041b39d2 XL |
15 | COPY scripts/rustbuild-setup.sh /scripts/ |
16 | RUN sh /scripts/rustbuild-setup.sh | |
32a655c1 SL |
17 | USER rustbuild |
18 | WORKDIR /tmp | |
19 | ||
f035d41b XL |
20 | COPY host-x86_64/dist-powerpc64-linux/patches/ /tmp/patches/ |
21 | COPY 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 |
22 | RUN ./build-powerpc64-toolchain.sh |
23 | ||
24 | USER root | |
25 | ||
041b39d2 XL |
26 | COPY scripts/sccache.sh /scripts/ |
27 | RUN sh /scripts/sccache.sh | |
32a655c1 | 28 | |
6a06907d XL |
29 | COPY scripts/cmake.sh /scripts/ |
30 | RUN /scripts/cmake.sh | |
31 | ||
32a655c1 SL |
32 | ENV PATH=$PATH:/x-tools/powerpc64-unknown-linux-gnu/bin |
33 | ||
34 | ENV \ | |
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 | |
39 | ENV HOSTS=powerpc64-unknown-linux-gnu | |
32a655c1 | 40 | |
0531ce1d | 41 | ENV RUST_CONFIGURE_ARGS --enable-extended --disable-docs |
ba9703b0 | 42 | ENV SCRIPT python3 ../x.py dist --host $HOSTS --target $HOSTS |