3 COPY scripts/cross-apt-packages.sh /scripts/
4 RUN sh /scripts/cross-apt-packages.sh
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
11 COPY scripts/crosstool-ng.sh /scripts/
12 RUN sh /scripts/crosstool-ng.sh
14 COPY scripts/rustbuild-setup.sh /scripts/
15 RUN sh /scripts/rustbuild-setup.sh
19 COPY host-x86_64/dist-powerpc-linux/patches/ /tmp/patches/
20 COPY host-x86_64/dist-powerpc-linux/powerpc-linux-gnu.config host-x86_64/dist-powerpc-linux/build-powerpc-toolchain.sh /tmp/
21 RUN ./build-powerpc-toolchain.sh
25 COPY scripts/sccache.sh /scripts/
26 RUN sh /scripts/sccache.sh
28 COPY scripts/cmake.sh /scripts/
31 ENV PATH=$PATH:/x-tools/powerpc-unknown-linux-gnu/bin
34 CC_powerpc_unknown_linux_gnu=powerpc-unknown-linux-gnu-gcc \
35 AR_powerpc_unknown_linux_gnu=powerpc-unknown-linux-gnu-ar \
36 CXX_powerpc_unknown_linux_gnu=powerpc-unknown-linux-gnu-g++
38 ENV HOSTS=powerpc-unknown-linux-gnu
40 ENV RUST_CONFIGURE_ARGS --enable-extended --disable-docs
41 ENV SCRIPT python3 ../x.py dist --host $HOSTS --target $HOSTS