]>
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 | ||
49aad941 FG |
6 | COPY scripts/crosstool-ng.sh /scripts/ |
7 | RUN sh /scripts/crosstool-ng.sh | |
2b03887a FG |
8 | |
9 | COPY scripts/rustbuild-setup.sh /scripts/ | |
10 | RUN sh /scripts/rustbuild-setup.sh | |
11 | WORKDIR /tmp | |
12 | ||
49aad941 | 13 | COPY scripts/crosstool-ng-build.sh /scripts/ |
2b03887a | 14 | COPY host-x86_64/dist-mips-linux/patches/ /tmp/patches/ |
49aad941 FG |
15 | COPY host-x86_64/dist-mips-linux/mips-linux-gnu.defconfig /tmp/crosstool.defconfig |
16 | RUN /scripts/crosstool-ng-build.sh | |
476ff2be | 17 | |
041b39d2 XL |
18 | COPY scripts/sccache.sh /scripts/ |
19 | RUN sh /scripts/sccache.sh | |
20 | ||
2b03887a FG |
21 | ENV PATH=$PATH:/x-tools/mips-unknown-linux-gnu/bin |
22 | ||
23 | ENV \ | |
24 | CC_mips_unknown_linux_gnu=mips-unknown-linux-gnu-gcc \ | |
25 | AR_mips_unknown_linux_gnu=mips-unknown-linux-gnu-ar \ | |
26 | CXX_mips_unknown_linux_gnu=mips-unknown-linux-gnu-g++ | |
6a06907d | 27 | |
32a655c1 | 28 | ENV HOSTS=mips-unknown-linux-gnu |
32a655c1 | 29 | |
2b03887a | 30 | ENV RUST_CONFIGURE_ARGS --enable-extended --disable-docs |
ba9703b0 | 31 | ENV SCRIPT python3 ../x.py dist --host $HOSTS --target $HOSTS |