fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1FROM ubuntu:22.04 2 3COPY scripts/cross-apt-packages.sh /scripts/ 4RUN sh /scripts/cross-apt-packages.sh 5 6COPY scripts/crosstool-ng.sh /scripts/ 7RUN sh /scripts/crosstool-ng.sh 8 9COPY scripts/rustbuild-setup.sh /scripts/ 10RUN sh /scripts/rustbuild-setup.sh 11WORKDIR /tmp 12 13COPY scripts/crosstool-ng-build.sh /scripts/ 14COPY host-x86_64/dist-riscv64-linux/riscv64-unknown-linux-gnu.defconfig /tmp/crosstool.defconfig 15RUN /scripts/crosstool-ng-build.sh 16 17COPY scripts/sccache.sh /scripts/ 18RUN sh /scripts/sccache.sh 19 20ENV PATH=$PATH:/x-tools/riscv64-unknown-linux-gnu/bin 21 22ENV CC_riscv64gc_unknown_linux_gnu=riscv64-unknown-linux-gnu-gcc \ 23 AR_riscv64gc_unknown_linux_gnu=riscv64-unknown-linux-gnu-ar \ 24 CXX_riscv64gc_unknown_linux_gnu=riscv64-unknown-linux-gnu-g++ 25 26ENV HOSTS=riscv64gc-unknown-linux-gnu 27 28ENV RUST_CONFIGURE_ARGS --enable-extended --enable-profiler --disable-docs 29ENV SCRIPT python3 ../x.py dist --target $HOSTS --host $HOSTS