File tree 5 files changed +50
-0
lines changed
mips64-unknown-linux-muslabi64
mips64el-unknown-linux-muslabi64
5 files changed +50
-0
lines changed Original file line number Diff line number Diff line change 58
58
TARGET : mips-unknown-linux-musl
59
59
mips64-unknown-linux-gnuabi64 :
60
60
TARGET : mips64-unknown-linux-gnuabi64
61
+ mips64-unknown-linux-muslabi64 :
62
+ TARGET : mips64-unknown-linux-muslabi64
61
63
mips64el-unknown-linux-gnuabi64 :
62
64
TARGET : mips64el-unknown-linux-gnuabi64
65
+ mips64el-unknown-linux-muslabi64 :
66
+ TARGET : mips64el-unknown-linux-muslabi64
63
67
mipsel-unknown-linux-musl :
64
68
TARGET : mipsel-unknown-linux-musl
65
69
# powerpc-unknown-linux-gnu:
Original file line number Diff line number Diff line change @@ -204,6 +204,8 @@ i686-unknown-netbsd \
204
204
i686-unknown-openbsd \
205
205
mips-unknown-linux-uclibc \
206
206
mipsel-unknown-linux-uclibc \
207
+ mips64-unknown-linux-muslabi64 \
208
+ mips64el-unknown-linux-muslabi64 \
207
209
nvptx64-nvidia-cuda \
208
210
powerpc-unknown-linux-gnuspe \
209
211
powerpc-unknown-netbsd \
Original file line number Diff line number Diff line change
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_muslabi64=musl-gcc \
13
+ RUSTFLAGS='-Clink-args=-lgcc' \
14
+ CARGO_TARGET_MIPS64_UNKNOWN_LINUX_MUSLABI64_LINKER=musl-gcc \
15
+ CARGO_TARGET_MIPS64_UNKNOWN_LINUX_MUSLABI64_RUNNER="qemu-mips64 -L /musl-mips64"
Original file line number Diff line number Diff line change
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_muslabi64=musl-gcc \
13
+ RUSTFLAGS='-Clink-args=-lgcc' \
14
+ CARGO_TARGET_MIPS64EL_UNKNOWN_LINUX_MUSLABI64_LINKER=musl-gcc \
15
+ CARGO_TARGET_MIPS64EL_UNKNOWN_LINUX_MUSLABI64_RUNNER="qemu-mips64el -L /musl-mips64el"
Original file line number Diff line number Diff line change @@ -46,6 +46,20 @@ case ${1} in
46
46
./configure --prefix=" /musl-${musl_arch} "
47
47
make install -j4
48
48
;;
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
+ ;;
49
63
* )
50
64
echo " Unknown target arch: \" ${1} \" "
51
65
exit 1
You can’t perform that action at this time.
0 commit comments