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
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
25 COPY scripts/sccache.sh /scripts/
26 RUN sh /scripts/sccache.sh
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++
33 ENV HOSTS=powerpc64le-unknown-linux-gnu
35 ENV RUST_CONFIGURE_ARGS --enable-extended --disable-docs
36 ENV SCRIPT python3 ../x.py dist --host $HOSTS --target $HOSTS