Skip to content

add support for arm-unknown-linux-gnueabihf #158

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all 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 .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ matrix:
# Linux
- env: TARGET=aarch64-unknown-linux-gnu CPP=1 DYLIB=1 STD=1 OPENSSL=0.5.5 RUN=1 RUNNERS="qemu-user qemu-system" CROSS_DEBUG=1
- env: TARGET=arm-unknown-linux-gnueabi CPP=1 DYLIB=1 STD=1 OPENSSL=0.5.5 RUN=1
- env: TARGET=arm-unknown-linux-gnueabihf CPP=1 DYLIB=1 STD=1 OPENSSL=0.5.5 RUN=1
- env: TARGET=armv7-unknown-linux-gnueabihf CPP=1 DYLIB=1 STD=1 OPENSSL=0.5.5 RUN=1 RUNNERS="qemu-user qemu-system"
- env: TARGET=i586-unknown-linux-gnu CPP=1 DYLIB=1 STD=1 OPENSSL=0.5.5 RUN=1
- env: TARGET=i686-unknown-linux-gnu CPP=1 DYLIB=1 STD=1 OPENSSL=0.5.5 RUN=1 RUNNERS="native qemu-user qemu-system"
Expand Down
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ This project adheres to [Semantic Versioning](http://semver.org/).
- OpenSSL support for the `armv7-unknown-linux-musleabihf` target.
- Build and test support for `aarch64-unknown-linux-musl`, `arm-unknown-linux-musleabihf`,
`armv5te-unknown-linux-musleabi`, `i586-unknown-linux-musl`, `mips-unknown-linux-musl`,
add `mipsel-unknown-linux-musl` targets.
add `mipsel-unknown-linux-musl` targets,
- Add support for arm-unknown-linux-gnueabihf .

## [v0.1.14] - 2017-11-22

Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ worst, "hang" (never terminate).
| `aarch64-unknown-linux-musl` | 1.1.20 | 6.3.0 | 1.0.2p | | 2.8.0 | ✓ |
| `arm-linux-androideabi` [5] | N/A | 4.9 | 1.0.2p | ✓ | N/A | ✓ |
| `arm-unknown-linux-gnueabi` | 2.19 | 4.8.2 | 1.0.2p | ✓ | 2.8.0 | ✓ |
| `arm-unknown-linux-gnueabihf` | 2.19 | 4.8.2 | 1.0.2p | ✓ | 2.8.0 | ✓ |
| `arm-unknown-linux-musleabi` | 1.1.20 | 6.3.0 | 1.0.2p | | 2.8.0 | ✓ |
| `arm-unknown-linux-musleabihf` | 1.1.20 | 6.3.0 | 1.0.2p | | 2.8.0 | ✓ |
| `armv5te-unknown-linux-musleabi` | 1.1.20 | 6.3.0 | N/A | | 2.8.0 | ✓ |
Expand Down
43 changes: 43 additions & 0 deletions docker/arm-unknown-linux-gnueabihf/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
FROM ubuntu:14.04

COPY cross-apt-packages.sh /
RUN sh /cross-apt-packages.sh

COPY crosstool-ng.sh /
RUN sh /crosstool-ng.sh

COPY rustbuild.sh /
RUN sh /rustbuild.sh
USER rustbuild
WORKDIR /tmp


COPY arm-unknown-linux-gnueabihf/arm-linux-gnueabihf.config /tmp/
COPY arm-unknown-linux-gnueabihf/build-toolchains.sh /tmp/
RUN sh ./build-toolchains.sh

USER root

ENV PATH=$PATH:/x-tools/arm-unknown-linux-gnueabihf/bin
RUN ls /x-tools
RUN ls /x-tools/arm-unknown-linux-gnueabihf
RUN ls /x-tools/arm-unknown-linux-gnueabihf/bin

COPY xargo.sh /
RUN bash /xargo.sh

COPY openssl.sh qemu.sh /

RUN bash /openssl.sh linux-armv4 arm-unknown-linux-gnueabihf- && \
bash /qemu.sh arm

ENV CARGO_TARGET_ARM_UNKNOWN_LINUX_GNUEABIHF_LINKER=arm-linux-gnueabihf-gcc \
CARGO_TARGET_ARM_UNKNOWN_LINUX_GNUEABIHF_RUNNER=qemu-arm \
CC_arm_unknown_linux_gnueabihf=arm-linux-gnueabihf-gcc \
AR_arm_unknown_linux_gnueabihf=arm-unknown-linux-gnueabihf-ar \
CXX_arm_unknown_linux_gnueabihf=arm-linux-gnueabihf-g++ \
OPENSSL_DIR=/openssl \
OPENSSL_INCLUDE_DIR=/openssl/include \
OPENSSL_LIB_DIR=/openssl/lib \
QEMU_LD_PREFIX=/usr/arm-linux-gnueabihf \
RUST_TEST_THREADS=1
Loading