• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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-armv7-linux/armv7-linux-gnueabihf.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/armv7-unknown-linux-gnueabihf/bin
21
22ENV CC_armv7_unknown_linux_gnueabihf=armv7-unknown-linux-gnueabihf-gcc \
23    AR_armv7_unknown_linux_gnueabihf=armv7-unknown-linux-gnueabihf-ar \
24    CXX_armv7_unknown_linux_gnueabihf=armv7-unknown-linux-gnueabihf-g++
25
26ENV HOSTS=armv7-unknown-linux-gnueabihf
27
28ENV RUST_CONFIGURE_ARGS --enable-full-tools --disable-docs
29ENV SCRIPT python3 ../x.py dist --host $HOSTS --target $HOSTS
30