fork/rust
git clone https://git.julia.blue/fork/rust
49cae55760d
1.44.0
1FROM ubuntu:16.04 2 3COPY scripts/cross-apt-packages.sh /scripts/ 4RUN sh /scripts/cross-apt-packages.sh 5 6COPY scripts/crosstool-ng-1.24.sh /scripts/ 7RUN sh /scripts/crosstool-ng-1.24.sh 8 9COPY scripts/rustbuild-setup.sh /scripts/ 10RUN sh /scripts/rustbuild-setup.sh 11USER rustbuild 12WORKDIR /tmp 13 14COPY dist-armv7-linux/build-toolchains.sh dist-armv7-linux/armv7-linux-gnueabihf.config /tmp/ 15RUN ./build-toolchains.sh 16 17USER root 18 19COPY scripts/sccache.sh /scripts/ 20RUN sh /scripts/sccache.sh 21 22ENV PATH=$PATH:/x-tools/armv7-unknown-linux-gnueabihf/bin 23 24ENV CC_armv7_unknown_linux_gnueabihf=armv7-unknown-linux-gnueabihf-gcc \ 25 AR_armv7_unknown_linux_gnueabihf=armv7-unknown-linux-gnueabihf-ar \ 26 CXX_armv7_unknown_linux_gnueabihf=armv7-unknown-linux-gnueabihf-g++ 27 28ENV HOSTS=armv7-unknown-linux-gnueabihf 29 30ENV RUST_CONFIGURE_ARGS --enable-extended --disable-docs 31ENV SCRIPT python3 ../x.py dist --host $HOSTS --target $HOSTS