forked from cross-rs/cross
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
thumbv7neon-unknown-linux-gnueabihf
target.
Partially addresses cross-rs#254.
- Loading branch information
1 parent
1312fca
commit 97c3ba3
Showing
3 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
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,38 @@ | ||
FROM ubuntu:16.04 | ||
ARG DEBIAN_FRONTEND=noninteractive | ||
|
||
COPY common.sh lib.sh / | ||
RUN /common.sh | ||
|
||
COPY cmake.sh / | ||
RUN /cmake.sh | ||
|
||
COPY xargo.sh / | ||
RUN /xargo.sh | ||
|
||
RUN apt-get update && apt-get install --assume-yes --no-install-recommends \ | ||
g++-arm-linux-gnueabihf \ | ||
libc6-dev-armhf-cross | ||
|
||
COPY qemu.sh / | ||
RUN /qemu.sh arm softmmu | ||
|
||
COPY dropbear.sh / | ||
RUN /dropbear.sh | ||
|
||
COPY linux-image.sh / | ||
RUN /linux-image.sh armv7 | ||
|
||
COPY linux-runner / | ||
|
||
ENV CARGO_TARGET_THUMBV7NEON_UNKNOWN_LINUX_GNUEABIHF_LINKER=arm-linux-gnueabihf-gcc \ | ||
CARGO_TARGET_THUMBV7NEON_UNKNOWN_LINUX_GNUEABIHF_RUNNER="/linux-runner armv7" \ | ||
LDFLAGS_thumbv7neon_unknown_linux_gnueabihf="-march=armv7-a -mthumb -mfpu=neon" \ | ||
CC_thumbv7neon_unknown_linux_gnueabihf=arm-linux-gnueabihf-gcc \ | ||
CFLAGS_thumbv7neon_unknown_linux_gnueabihf="-march=armv7-a -mthumb -mfpu=neon" \ | ||
CXX_thumbv7neon_unknown_linux_gnueabihf=arm-linux-gnueabihf-g++ \ | ||
CXXFLAGS_thumbv7neon_unknown_linux_gnueabihf="-march=armv7-a -mthumb -mfpu=neon" \ | ||
BINDGEN_EXTRA_CLANG_ARGS_thumbv7neon_unknown_linux_gnueabihf="--sysroot=/usr/arm-linux-gnueabihf" \ | ||
QEMU_LD_PREFIX=/usr/arm-linux-gnueabihf \ | ||
RUST_TEST_THREADS=1 \ | ||
PKG_CONFIG_PATH="/usr/lib/arm-linux-gnueabihf/pkgconfig/:${PKG_CONFIG_PATH}" |