ci: Add mips64(el)-unknown-linux-muslabi64 as initially no_core targets

This commit is contained in:
Wang Xuerui 2019-07-31 13:22:45 +08:00
parent cd51d11fcb
commit 2883e4ce0f
No known key found for this signature in database
GPG key ID: 2D3CE56AF5320830
4 changed files with 46 additions and 0 deletions

View file

@ -204,6 +204,8 @@ i686-unknown-netbsd \
i686-unknown-openbsd \ i686-unknown-openbsd \
mips-unknown-linux-uclibc \ mips-unknown-linux-uclibc \
mipsel-unknown-linux-uclibc \ mipsel-unknown-linux-uclibc \
mips64-unknown-linux-muslabi64 \
mips64el-unknown-linux-muslabi64 \
nvptx64-nvidia-cuda \ nvptx64-nvidia-cuda \
powerpc-unknown-linux-gnuspe \ powerpc-unknown-linux-gnuspe \
powerpc-unknown-netbsd \ powerpc-unknown-netbsd \

View file

@ -0,0 +1,15 @@
FROM ubuntu:19.04
RUN apt-get update && apt-get install -y --no-install-recommends \
gcc make libc6-dev git curl ca-certificates \
gcc-mips64-linux-gnuabi64 qemu-user
COPY install-musl.sh /
RUN sh /install-musl.sh mips64
# FIXME: shouldn't need the `-lgcc` here, shouldn't that be in libstd?
ENV PATH=$PATH:/musl-mips64/bin:/rust/bin \
CC_mips64_unknown_linux_muslabi64=musl-gcc \
RUSTFLAGS='-Clink-args=-lgcc' \
CARGO_TARGET_MIPS64_UNKNOWN_LINUX_MUSLABI64_LINKER=musl-gcc \
CARGO_TARGET_MIPS64_UNKNOWN_LINUX_MUSLABI64_RUNNER="qemu-mips64 -L /musl-mips64"

View file

@ -0,0 +1,15 @@
FROM ubuntu:19.04
RUN apt-get update && apt-get install -y --no-install-recommends \
gcc make libc6-dev git curl ca-certificates \
gcc-mips64el-linux-gnuabi64 qemu-user
COPY install-musl.sh /
RUN sh /install-musl.sh mips64el
# FIXME: shouldn't need the `-lgcc` here, shouldn't that be in libstd?
ENV PATH=$PATH:/musl-mips64el/bin:/rust/bin \
CC_mips64el_unknown_linux_muslabi64=musl-gcc \
RUSTFLAGS='-Clink-args=-lgcc' \
CARGO_TARGET_MIPS64EL_UNKNOWN_LINUX_MUSLABI64_LINKER=musl-gcc \
CARGO_TARGET_MIPS64EL_UNKNOWN_LINUX_MUSLABI64_RUNNER="qemu-mips64el -L /musl-mips64el"

View file

@ -46,6 +46,20 @@ case ${1} in
./configure --prefix="/musl-${musl_arch}" ./configure --prefix="/musl-${musl_arch}"
make install -j4 make install -j4
;; ;;
mips64)
musl_arch=mips64
kernel_arch=mips
CC=mips64-linux-gnuabi64-gcc CFLAGS="-march=mips64r2 -mabi=64" \
./configure --prefix="/musl-${musl_arch}" --enable-wrapper=yes
make install -j4
;;
mips64el)
musl_arch=mips64el
kernel_arch=mips
CC=mips64el-linux-gnuabi64-gcc CFLAGS="-march=mips64r2 -mabi=64" \
./configure --prefix="/musl-${musl_arch}" --enable-wrapper=yes
make install -j4
;;
*) *)
echo "Unknown target arch: \"${1}\"" echo "Unknown target arch: \"${1}\""
exit 1 exit 1