File tree Expand file tree Collapse file tree 3 files changed +57
-0
lines changed
docker/host-x86_64/dist-armv7-linux-musl Expand file tree Collapse file tree 3 files changed +57
-0
lines changed Original file line number Diff line number Diff line change 1+ FROM ubuntu:22.04
2+
3+ COPY scripts/cross-apt-packages.sh /scripts/
4+ RUN sh /scripts/cross-apt-packages.sh
5+
6+ COPY scripts/crosstool-ng.sh /scripts/
7+ RUN sh /scripts/crosstool-ng.sh
8+
9+ COPY scripts/rustbuild-setup.sh /scripts/
10+ RUN sh /scripts/rustbuild-setup.sh
11+ WORKDIR /tmp
12+
13+ COPY scripts/crosstool-ng-build.sh /scripts/
14+ COPY host-x86_64/dist-armv7-linux-musl/armv7-unknown-linux-musleabihf.defconfig /tmp/crosstool.defconfig
15+ RUN /scripts/crosstool-ng-build.sh
16+
17+ COPY scripts/sccache.sh /scripts/
18+ RUN sh /scripts/sccache.sh
19+
20+ ENV PATH=$PATH:/x-tools/armv7-unknown-linux-musleabihf/bin
21+
22+ ENV CC_armv7_unknown_linux_musleabihf=armv7-unknown-linux-musleabihf-gcc \
23+ AR_armv7_unknown_linux_musleabihf=armv7-unknown-linux-musleabihf-ar \
24+ CXX_armv7_unknown_linux_musleabihf=armv7-unknown-linux-musleabihf-g++
25+
26+ ENV HOSTS=armv7-unknown-linux-musleabihf
27+
28+ ENV RUST_CONFIGURE_ARGS \
29+ --enable-extended \
30+ --enable-full-tools \
31+ --enable-profiler \
32+ --enable-sanitizers \
33+ --disable-docs \
34+ --set target.armv7-unknown-linux-musleabihf.crt-static=false \
35+ --musl-root-armv7hf=/x-tools/armv7-unknown-linux-musleabihf/armv7-unknown-linux-musleabihf/sysroot/usr
36+
37+ ENV SCRIPT python3 ../x.py dist --host $HOSTS --target $HOSTS
Original file line number Diff line number Diff line change 1+ CT_CONFIG_VERSION="4"
2+ CT_EXPERIMENTAL=y
3+ CT_PREFIX_DIR="/x-tools/${CT_TARGET}"
4+ CT_USE_MIRROR=y
5+ CT_MIRROR_BASE_URL="https://ci-mirrors.rust-lang.org/rustc"
6+ CT_ARCH_ARM=y
7+ CT_ARCH_ARM_MODE_THUMB=y
8+ CT_ARCH_SUFFIX="v7"
9+ CT_ARCH_ARCH="armv7-a"
10+ CT_ARCH_FPU="vfpv3-d16"
11+ CT_ARCH_FLOAT_HW=y
12+ CT_KERNEL_LINUX=y
13+ CT_LINUX_V_4_19=y
14+ CT_LIBC_MUSL=y
15+ CT_MUSL_V_1_2_3=y
16+ CT_CC_LANG_CXX=y
17+ CT_GETTEXT_NEEDED=y
Original file line number Diff line number Diff line change @@ -198,6 +198,9 @@ auto:
198198 - name : dist-armv7-linux
199199 << : *job-linux-4c
200200
201+ - name : dist-armv7-linux-musl
202+ << : *job-linux-4c
203+
201204 - name : dist-i586-gnu-i586-i686-musl
202205 << : *job-linux-4c
203206
You can’t perform that action at this time.
0 commit comments