Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ The image names don't map identically to the target names, to avoid conflicting
| x86_64-apple-darwin | x86_64-apple-darwin-cross |
| x86_64-pc-windows-msvc | x86_64-pc-windows-msvc-cross |
| x86_64-unknown-linux-gnu | x86_64-unknown-linux-gnu-sde-cross |
| mipsel-unknown-linux-uclibc | /mipsel-unknown-linux-uclibc-cross |

For example, to build and run an image, you would configure the image with:

Expand Down
5 changes: 3 additions & 2 deletions docker/Dockerfile.mipsel-unknown-linux-uclibc-cross
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,12 @@ RUN /qemu.sh mipsel

COPY qemu-runner base-runner.sh /

ENV CROSS_SYSROOT=/x-tools/mipsel-unknown-linux-uclibc/mipsel-unknown-linux-uclibc/sysroot/
ENV CARGO_TARGET_MIPSEL_UNKNOWN_LINUX_UCLIBC_LINKER=mipsel-unknown-linux-uclibc-gcc \
CARGO_TARGET_MIPSEL_UNKNOWN_LINUX_UCLIBC_RUNNER="/qemu-runner mipsel" \
CC_mipsel_unknown_linux_uclibc=mipsel-unknown-linux-uclibc-gcc \
CXX_mipsel_unknown_linux_uclibc=mipsel-unknown-linux-uclibc-g++ \
BINDGEN_EXTRA_CLANG_ARGS_mipsel_unknown_linux_uclibc="--sysroot=/usr/mipsel-unknown-linux-uclibc" \
QEMU_LD_PREFIX=/usr/mipsel-unknown-linux-uclibc \
BINDGEN_EXTRA_CLANG_ARGS_mipsel_unknown_linux_uclibc="--sysroot=$CROSS_SYSROOT" \
QEMU_LD_PREFIX="$CROSS_SYSROOT" \
RUST_TEST_THREADS=1 \
PKG_CONFIG_PATH="/usr/lib/mipsel-unknown-linux-uclibc/pkgconfig/:${PKG_CONFIG_PATH}"