@@ -12,98 +12,19 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
12
12
sudo \
13
13
xz-utils \
14
14
zlib1g-dev \
15
- g++-arm-linux-gnueabi \
16
- g++-arm-linux-gnueabihf \
17
- g++-aarch64-linux-gnu \
18
- gcc-sparc64-linux-gnu \
19
- libc6-dev-sparc64-cross \
20
15
bzip2 \
21
16
patch \
22
17
libssl-dev \
23
18
pkg-config \
24
19
gcc-arm-none-eabi \
25
20
libnewlib-arm-none-eabi
26
21
27
- WORKDIR /build
28
-
29
- COPY dist-various-1/build-rumprun.sh /build
30
- RUN ./build-rumprun.sh
31
-
32
- COPY dist-various-1/install-x86_64-redox.sh /build
33
- RUN ./install-x86_64-redox.sh
34
-
35
- COPY dist-various-1/install-mips-musl.sh /build
36
- RUN ./install-mips-musl.sh
37
-
38
- COPY dist-various-1/install-mipsel-musl.sh /build
39
- RUN ./install-mipsel-musl.sh
40
-
41
- # Suppress some warnings in the openwrt toolchains we downloaded
42
- ENV STAGING_DIR=/tmp
43
-
44
- COPY scripts/musl.sh /build
45
- RUN env \
46
- CC=arm-linux-gnueabi-gcc CFLAGS="-march=armv5te -marm -mfloat-abi=soft" \
47
- CXX=arm-linux-gnueabi-g++ CXXFLAGS="-march=armv5te -marm -mfloat-abi=soft" \
48
- bash musl.sh armv5te && \
49
- env \
50
- CC=arm-linux-gnueabi-gcc CFLAGS="-march=armv6 -marm" \
51
- CXX=arm-linux-gnueabi-g++ CXXFLAGS="-march=armv6 -marm" \
52
- bash musl.sh arm && \
53
- env \
54
- CC=arm-linux-gnueabihf-gcc CFLAGS="-march=armv6 -marm" \
55
- CXX=arm-linux-gnueabihf-g++ CXXFLAGS="-march=armv6 -marm" \
56
- bash musl.sh armhf && \
57
- env \
58
- CC=arm-linux-gnueabihf-gcc CFLAGS="-march=armv7-a" \
59
- CXX=arm-linux-gnueabihf-g++ CXXFLAGS="-march=armv7-a" \
60
- bash musl.sh armv7 && \
61
- env \
62
- CC=aarch64-linux-gnu-gcc \
63
- CXX=aarch64-linux-gnu-g++ \
64
- bash musl.sh aarch64 && \
65
- env \
66
- CC=mips-openwrt-linux-gcc \
67
- CXX=mips-openwrt-linux-g++ \
68
- bash musl.sh mips && \
69
- env \
70
- CC=mipsel-openwrt-linux-gcc \
71
- CXX=mipsel-openwrt-linux-g++ \
72
- bash musl.sh mipsel && \
73
- rm -rf /build/*
74
-
75
- # FIXME(mozilla/sccache#235) this shouldn't be necessary but is currently
76
- # necessary to disambiguate the mips compiler with the mipsel compiler. We want
77
- # to give these two wrapper scripts (currently identical ones) different hashes
78
- # to ensure that sccache understands that they're different compilers.
79
- RUN \
80
- echo "# a" >> /usr/local/mips-linux-musl/bin/mips-openwrt-linux-musl-wrapper.sh && \
81
- echo "# b" >> /usr/local/mipsel-linux-musl/bin/mipsel-openwrt-linux-musl-wrapper.sh
82
-
83
22
# ENV TARGETS=thumbv6m-none-eabi
84
23
ENV TARGETS=thumbv7m-none-eabi
85
24
ENV TARGETS=$TARGETS,thumbv7em-none-eabi
86
25
ENV TARGETS=$TARGETS,thumbv7em-none-eabihf
87
26
88
- # FIXME: remove armv5te vars after https://github.com/alexcrichton/cc-rs/issues/271
89
- # get fixed and cc update
90
- ENV CC_mipsel_unknown_linux_musl=mipsel-openwrt-linux-gcc \
91
- CC_mips_unknown_linux_musl=mips-openwrt-linux-gcc \
92
- CC_sparc64_unknown_linux_gnu=sparc64-linux-gnu-gcc \
93
- CC_x86_64_unknown_redox=x86_64-unknown-redox-gcc \
94
- CC_armv5te_unknown_linux_gnueabi=arm-linux-gnueabi-gcc \
95
- CFLAGS_armv5te_unknown_linux_gnueabi="-march=armv5te -marm -mfloat-abi=soft" \
96
- CC_armv5te_unknown_linux_musleabi=arm-linux-gnueabi-gcc \
97
- CFLAGS_armv5te_unknown_linux_musleabi="-march=armv5te -marm -mfloat-abi=soft"
98
-
99
27
ENV RUST_CONFIGURE_ARGS \
100
- --musl-root-armv5te=/musl-armv5te \
101
- --musl-root-arm=/musl-arm \
102
- --musl-root-armhf=/musl-armhf \
103
- --musl-root-armv7=/musl-armv7 \
104
- --musl-root-aarch64=/musl-aarch64 \
105
- --musl-root-mips=/musl-mips \
106
- --musl-root-mipsel=/musl-mipsel \
107
28
--disable-docs
108
29
109
30
ENV SCRIPT python2.7 ../x.py test --target $TARGETS src/test/run-make
0 commit comments