3 COPY scripts/cross-apt-packages.sh /scripts/
4 RUN sh /scripts/cross-apt-packages.sh
6 COPY scripts/crosstool-ng-1.24.sh /scripts/
7 RUN sh /scripts/crosstool-ng-1.24.sh
9 COPY scripts/rustbuild-setup.sh /scripts/
10 RUN sh /scripts/rustbuild-setup.sh
13 COPY host-x86_64/dist-mips-linux/patches/ /tmp/patches/
14 COPY host-x86_64/dist-mips64el-linux/mips64el-linux-gnu.config host-x86_64/dist-mips64el-linux/build-mips64el-toolchain.sh /tmp/
15 RUN su rustbuild -c ./build-mips64el-toolchain.sh
17 COPY scripts/sccache.sh /scripts/
18 RUN sh /scripts/sccache.sh
20 ENV PATH=$PATH:/x-tools/mips64el-unknown-linux-gnu/bin
23 CC_mips64el_unknown_linux_gnuabi64=mips64el-unknown-linux-gnu-gcc \
24 AR_mips64el_unknown_linux_gnuabi64=mips64el-unknown-linux-gnu-ar \
25 CXX_mips64el_unknown_linux_gnuabi64=mips64el-unknown-linux-gnu-g++
27 ENV HOSTS=mips64el-unknown-linux-gnuabi64
29 ENV RUST_CONFIGURE_ARGS --enable-extended --disable-docs
30 ENV SCRIPT python3 ../x.py dist --host $HOSTS --target $HOSTS