ci: Add mips64(el)-unknown-linux-muslabi64 as initially no_core targets
This commit is contained in:
parent
cd51d11fcb
commit
2883e4ce0f
|
@ -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 \
|
||||||
|
|
15
ci/docker/mips64-unknown-linux-muslabi64/Dockerfile
Normal file
15
ci/docker/mips64-unknown-linux-muslabi64/Dockerfile
Normal 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"
|
15
ci/docker/mips64el-unknown-linux-muslabi64/Dockerfile
Normal file
15
ci/docker/mips64el-unknown-linux-muslabi64/Dockerfile
Normal 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"
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue