Skip to content

Commit d7b3a2e

Browse files
committed
Add CI for mips64(el)-unknown-linux-musl
1 parent 0135728 commit d7b3a2e

File tree

4 files changed

+48
-0
lines changed

4 files changed

+48
-0
lines changed

.travis.yml

+4
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,12 @@ matrix:
185185
stage: tier2
186186
- env: TARGET=mips64-unknown-linux-gnuabi64
187187
stage: tier2
188+
- env: TARGET=mips64-unknown-linux-musl
189+
stage: tier2
188190
- env: TARGET=mips64el-unknown-linux-gnuabi64
189191
stage: tier2
192+
- env: TARGET=mips64el-unknown-linux-musl
193+
stage: tier2
190194
- env: TARGET=mipsel-unknown-linux-musl
191195
stage: tier2
192196
- env: TARGET=powerpc-unknown-linux-gnu
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
FROM ubuntu:19.04
2+
3+
RUN apt-get update && apt-get install -y --no-install-recommends \
4+
gcc make libc6-dev git curl ca-certificates \
5+
gcc-mips64-linux-gnuabi64 qemu-user
6+
7+
COPY install-musl.sh /
8+
RUN sh /install-musl.sh mips64
9+
10+
# FIXME: shouldn't need the `-lgcc` here, shouldn't that be in libstd?
11+
ENV PATH=$PATH:/musl-mips64/bin:/rust/bin \
12+
CC_mips64_unknown_linux_musl=musl-gcc \
13+
RUSTFLAGS='-Clink-args=-lgcc' \
14+
CARGO_TARGET_MIPS64_UNKNOWN_LINUX_MUSL_LINKER=musl-gcc \
15+
CARGO_TARGET_MIPS64_UNKNOWN_LINUX_MUSL_RUNNER="qemu-mips64 -L /musl-mips64"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
FROM ubuntu:19.04
2+
3+
RUN apt-get update && apt-get install -y --no-install-recommends \
4+
gcc make libc6-dev git curl ca-certificates \
5+
gcc-mips64el-linux-gnuabi64 qemu-user
6+
7+
COPY install-musl.sh /
8+
RUN sh /install-musl.sh mips64el
9+
10+
# FIXME: shouldn't need the `-lgcc` here, shouldn't that be in libstd?
11+
ENV PATH=$PATH:/musl-mips64el/bin:/rust/bin \
12+
CC_mips64el_unknown_linux_musl=musl-gcc \
13+
RUSTFLAGS='-Clink-args=-lgcc' \
14+
CARGO_TARGET_MIPS64EL_UNKNOWN_LINUX_MUSL_LINKER=musl-gcc \
15+
CARGO_TARGET_MIPS64EL_UNKNOWN_LINUX_MUSL_RUNNER="qemu-mips64el -L /musl-mips64el"

ci/install-musl.sh

+14
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,20 @@ case ${1} in
4646
./configure --prefix="/musl-${musl_arch}"
4747
make install -j4
4848
;;
49+
mips64)
50+
musl_arch=mips64
51+
kernel_arch=mips
52+
CC=mips64-linux-gnuabi64-gcc CFLAGS="-march=mips64r2 -mabi=64" \
53+
./configure --prefix="/musl-${musl_arch}" --enable-wrapper=yes
54+
make install -j4
55+
;;
56+
mips64el)
57+
musl_arch=mips64el
58+
kernel_arch=mips
59+
CC=mips64el-linux-gnuabi64-gcc CFLAGS="-march=mips64r2 -mabi=64" \
60+
./configure --prefix="/musl-${musl_arch}" --enable-wrapper=yes
61+
make install -j4
62+
;;
4963
*)
5064
echo "Unknown target arch: \"${1}\""
5165
exit 1

0 commit comments

Comments
 (0)