-
Notifications
You must be signed in to change notification settings - Fork 373
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
741: Add soft-float ARMv7 targets. r=Emilgardis a=Alexhuszagh Added `armv7-unknown-linux-gnueabi` and `armv7-unknown-linux-musleabi` targets, which target soft-float ARMv7-a processors. Closes #354. Co-authored-by: Alex Huszagh <ahuszagh@gmail.com>
- Loading branch information
Showing
6 changed files
with
70 additions
and
1 deletion.
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
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,27 @@ | ||
FROM ubuntu:18.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 install --assume-yes --no-install-recommends \ | ||
g++-arm-linux-gnueabi \ | ||
libc6-dev-armel-cross | ||
|
||
COPY qemu.sh / | ||
RUN /qemu.sh arm | ||
|
||
ENV CARGO_TARGET_ARMV7_UNKNOWN_LINUX_GNUEABI_LINKER=arm-linux-gnueabi-gcc \ | ||
CARGO_TARGET_ARMV7_UNKNOWN_LINUX_GNUEABI_RUNNER=qemu-arm \ | ||
CC_armv7_unknown_linux_gnueabi=arm-linux-gnueabi-gcc \ | ||
CXX_armv7_unknown_linux_gnueabi=arm-linux-gnueabi-g++ \ | ||
BINDGEN_EXTRA_CLANG_ARGS_armv7_unknown_linux_gnueabi="--sysroot=/usr/arm-linux-gnueabi" \ | ||
QEMU_LD_PREFIX=/usr/arm-linux-gnueabi \ | ||
RUST_TEST_THREADS=1 \ | ||
PKG_CONFIG_PATH="/usr/lib/arm-linux-gnueabi/pkgconfig/:${PKG_CONFIG_PATH}" |
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,35 @@ | ||
FROM ubuntu:18.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 | ||
|
||
COPY qemu.sh / | ||
RUN /qemu.sh arm | ||
|
||
COPY musl.sh / | ||
RUN /musl.sh \ | ||
TARGET=arm-linux-musleabi \ | ||
"COMMON_CONFIG += --with-arch=armv7-a \ | ||
--with-float=soft \ | ||
--with-mode=thumb \ | ||
--with-mode=arm" | ||
|
||
# Allows qemu run dynamic linked binaries | ||
RUN ln -sf \ | ||
/usr/local/arm-linux-musleabi/lib/libc.so \ | ||
/usr/local/arm-linux-musleabi/lib/ld-musl-arm.so.1 | ||
|
||
ENV CARGO_TARGET_ARMV7_UNKNOWN_LINUX_MUSLEABI_LINKER=arm-linux-musleabi-gcc \ | ||
CARGO_TARGET_ARMV7_UNKNOWN_LINUX_MUSLEABI_RUNNER=qemu-arm \ | ||
CC_armv7_unknown_linux_musleabi=arm-linux-musleabi-gcc \ | ||
CXX_armv7_unknown_linux_musleabi=arm-linux-musleabi-g++ \ | ||
BINDGEN_EXTRA_CLANG_ARGS_armv7_unknown_linux_musleabi="--sysroot=/usr/local/arm-linux-musleabi" \ | ||
QEMU_LD_PREFIX=/usr/local/arm-linux-musleabi \ | ||
RUST_TEST_THREADS=1 |
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