Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add mipsel-unknown-linux-musl target.
- Loading branch information
Showing
2 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
FROM ubuntu:18.04 | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y --no-install-recommends \ | ||
ca-certificates \ | ||
cmake \ | ||
gcc \ | ||
libc6-dev \ | ||
make \ | ||
pkg-config | ||
|
||
COPY xargo.sh / | ||
RUN bash /xargo.sh | ||
|
||
COPY qemu.sh / | ||
RUN bash /qemu.sh mipsel | ||
|
||
COPY musl.sh / | ||
RUN bash /musl.sh \ | ||
TARGET=mipsel-linux-muslsf \ | ||
"COMMON_CONFIG += -with-arch=mips32" | ||
|
||
COPY openssl.sh / | ||
RUN bash /openssl.sh linux-mips32 mipsel-linux-muslsf- | ||
|
||
# This allows qemu run dynamic linked binaries | ||
RUN ln -sf \ | ||
/usr/local/mipsel-linux-muslsf/lib/libc.so \ | ||
/usr/local/mipsel-linux-muslsf/lib/ld-musl-mipsel-sf.so.1 | ||
ENV QEMU_LD_PREFIX=/usr/local/mipsel-linux-muslsf | ||
|
||
ENV CARGO_TARGET_MIPSEL_UNKNOWN_LINUX_MUSL_LINKER=mipsel-linux-muslsf-gcc \ | ||
CARGO_TARGET_MIPSEL_UNKNOWN_LINUX_MUSL_RUNNER=qemu-mipsel \ | ||
CC_mipsel_unknown_linux_musl=mipsel-linux-muslsf-gcc \ | ||
CXX_mipsel_unknown_linux_musl=mipsel-linux-muslsf-g++ \ | ||
OPENSSL_DIR=/openssl \ | ||
OPENSSL_INCLUDE_DIR=/openssl/include \ | ||
OPENSSL_LIB_DIR=/openssl/lib \ | ||
RUST_TEST_THREADS=1 |