]>
Commit | Line | Data |
---|---|---|
32a655c1 SL |
1 | FROM ubuntu:16.04 |
2 | ||
041b39d2 XL |
3 | COPY scripts/cross-apt-packages.sh /scripts/ |
4 | RUN sh /scripts/cross-apt-packages.sh | |
5 | ||
6 | COPY scripts/dumb-init.sh /scripts/ | |
7 | RUN sh /scripts/dumb-init.sh | |
32a655c1 | 8 | |
32a655c1 SL |
9 | ENTRYPOINT ["/usr/bin/dumb-init", "--"] |
10 | ||
041b39d2 | 11 | # Ubuntu 16.04 (this container) ships with make 4, but something in the |
32a655c1 | 12 | # toolchains we build below chokes on that, so go back to make 3 |
041b39d2 XL |
13 | COPY scripts/make3.sh /scripts/ |
14 | RUN sh /scripts/make3.sh | |
32a655c1 | 15 | |
041b39d2 XL |
16 | COPY scripts/crosstool-ng.sh /scripts/ |
17 | RUN sh /scripts/crosstool-ng.sh | |
32a655c1 | 18 | |
041b39d2 XL |
19 | COPY scripts/rustbuild-setup.sh /scripts/ |
20 | RUN sh /scripts/rustbuild-setup.sh | |
32a655c1 SL |
21 | USER rustbuild |
22 | WORKDIR /tmp | |
23 | ||
7cac9316 | 24 | COPY dist-x86_64-netbsd/build-netbsd-toolchain.sh /tmp/ |
cc61c64b | 25 | RUN ./build-netbsd-toolchain.sh |
32a655c1 SL |
26 | |
27 | USER root | |
28 | ||
041b39d2 XL |
29 | COPY scripts/sccache.sh /scripts/ |
30 | RUN sh /scripts/sccache.sh | |
32a655c1 | 31 | |
cc61c64b | 32 | ENV PATH=$PATH:/x-tools/x86_64-unknown-netbsd/bin |
32a655c1 SL |
33 | |
34 | ENV \ | |
cc61c64b XL |
35 | AR_x86_64_unknown_netbsd=x86_64--netbsd-ar \ |
36 | CC_x86_64_unknown_netbsd=x86_64--netbsd-gcc-sysroot \ | |
37 | CXX_x86_64_unknown_netbsd=x86_64--netbsd-g++-sysroot | |
32a655c1 SL |
38 | |
39 | ENV HOSTS=x86_64-unknown-netbsd | |
32a655c1 SL |
40 | |
41 | ENV RUST_CONFIGURE_ARGS --host=$HOSTS --enable-extended | |
42 | ENV SCRIPT python2.7 ../x.py dist --host $HOSTS --target $HOSTS |