]> git.lizzy.rs Git - rust.git/blob - src/ci/docker/host-x86_64/dist-mips64el-linux/Dockerfile
Auto merge of #105421 - jacobbramley:jb/branch-prot-check, r=nagisa
[rust.git] / src / ci / docker / host-x86_64 / dist-mips64el-linux / Dockerfile
1 FROM ubuntu:22.04
2
3 COPY scripts/cross-apt-packages.sh /scripts/
4 RUN sh /scripts/cross-apt-packages.sh
5
6 COPY scripts/crosstool-ng-1.24.sh /scripts/
7 RUN sh /scripts/crosstool-ng-1.24.sh
8
9 COPY scripts/rustbuild-setup.sh /scripts/
10 RUN sh /scripts/rustbuild-setup.sh
11 WORKDIR /tmp
12
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
16
17 COPY scripts/sccache.sh /scripts/
18 RUN sh /scripts/sccache.sh
19
20 ENV PATH=$PATH:/x-tools/mips64el-unknown-linux-gnu/bin
21
22 ENV \
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++
26
27 ENV HOSTS=mips64el-unknown-linux-gnuabi64
28
29 ENV RUST_CONFIGURE_ARGS --enable-extended --disable-docs
30 ENV SCRIPT python3 ../x.py dist --host $HOSTS --target $HOSTS