]>
Commit | Line | Data |
---|---|---|
2b03887a | 1 | FROM ubuntu:22.04 |
476ff2be | 2 | |
2b03887a FG |
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 | |
476ff2be | 16 | |
041b39d2 XL |
17 | COPY scripts/sccache.sh /scripts/ |
18 | RUN sh /scripts/sccache.sh | |
19 | ||
2b03887a FG |
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++ | |
6a06907d | 26 | |
cc61c64b | 27 | ENV HOSTS=mips64el-unknown-linux-gnuabi64 |
32a655c1 | 28 | |
2b03887a | 29 | ENV RUST_CONFIGURE_ARGS --enable-extended --disable-docs |
ba9703b0 | 30 | ENV SCRIPT python3 ../x.py dist --host $HOSTS --target $HOSTS |