-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding cross compilation script based on https://github.com/rust-embedded/cross. In order to the generated binary work on Raspbian, OpenSSL is linked statically. This script required docker and will generate an image named `rust-aws-ddns/base-armhf-img`.
- Loading branch information
1 parent
f89f579
commit 06ea455
Showing
7 changed files
with
33 additions
and
66 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,2 @@ | ||
[target.armv7-unknown-linux-gnueabihf] | ||
image = "rust-aws-ddns/base-armhf-img:latest" |
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,3 @@ | ||
#!/bin/bash | ||
./docker/build-container-armhf.sh | ||
cross build --target armv7-unknown-linux-gnueabihf --features openssl |
This file was deleted.
Oops, something went wrong.
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,12 @@ | ||
FROM rustembedded/cross:armv7-unknown-linux-gnueabihf-0.2.1 | ||
|
||
# libssl-dev:armhf && \ | ||
|
||
RUN dpkg --add-architecture armhf && \ | ||
apt-get update && \ | ||
apt-get install --assume-yes \ | ||
openssl:armhf \ | ||
libssl-dev:armhf \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
ENV PKG_CONFIG_PATH=/usr/lib/arm-linux-gnueabihf/pkgconfig |
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,3 @@ | ||
#!/bin/bash | ||
cd "$(dirname "$0")" | ||
docker build -t rust-aws-ddns/base-armhf-img -f Dockerfile-armhf . |