]>
Commit | Line | Data |
---|---|---|
ee023bcb | 1 | FROM ubuntu:20.04 |
32a655c1 | 2 | |
041b39d2 XL |
3 | COPY scripts/cross-apt-packages.sh /scripts/ |
4 | RUN sh /scripts/cross-apt-packages.sh | |
5 | ||
ee023bcb FG |
6 | COPY scripts/crosstool-ng-1.24.sh /scripts/ |
7 | RUN sh /scripts/crosstool-ng-1.24.sh | |
32a655c1 | 8 | |
041b39d2 XL |
9 | COPY scripts/rustbuild-setup.sh /scripts/ |
10 | RUN sh /scripts/rustbuild-setup.sh | |
32a655c1 SL |
11 | USER rustbuild |
12 | WORKDIR /tmp | |
13 | ||
f035d41b XL |
14 | COPY host-x86_64/dist-s390x-linux/patches/ /tmp/patches/ |
15 | COPY host-x86_64/dist-s390x-linux/s390x-linux-gnu.config host-x86_64/dist-s390x-linux/build-s390x-toolchain.sh /tmp/ | |
32a655c1 SL |
16 | RUN ./build-s390x-toolchain.sh |
17 | ||
18 | USER root | |
19 | ||
041b39d2 XL |
20 | COPY scripts/sccache.sh /scripts/ |
21 | RUN sh /scripts/sccache.sh | |
32a655c1 | 22 | |
6a06907d XL |
23 | COPY scripts/cmake.sh /scripts/ |
24 | RUN /scripts/cmake.sh | |
25 | ||
32a655c1 SL |
26 | ENV PATH=$PATH:/x-tools/s390x-ibm-linux-gnu/bin |
27 | ||
28 | ENV \ | |
32a655c1 SL |
29 | CC_s390x_unknown_linux_gnu=s390x-ibm-linux-gnu-gcc \ |
30 | AR_s390x_unknown_linux_gnu=s390x-ibm-linux-gnu-ar \ | |
31 | CXX_s390x_unknown_linux_gnu=s390x-ibm-linux-gnu-g++ | |
32 | ||
cc61c64b | 33 | ENV HOSTS=s390x-unknown-linux-gnu |
32a655c1 | 34 | |
ee023bcb | 35 | ENV RUST_CONFIGURE_ARGS --enable-extended --enable-lld --disable-docs |
ba9703b0 | 36 | ENV SCRIPT python3 ../x.py dist --host $HOSTS --target $HOSTS |