Skip to content
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

Enable builds for armv6 target #610

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
3 changes: 2 additions & 1 deletion .github/workflows/flowzone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,5 @@ jobs:
aarch64-unknown-linux-gnu,
armv7-unknown-linux-gnueabihf,
x86_64-unknown-linux-gnu,
i686-unknown-linux-gnu
i686-unknown-linux-gnu,
arm-unknown-linux-gnueabihf
7 changes: 7 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,10 @@ default-features = false

[profile.release]
lto = true

[target.arm-unknown-linux-gnueabihf.env]
passthrough = [
"RUSTFLAGS=-L /usr/arm-linux-gnueabihf/lib/ -L /usr/lib/arm-linux-gnueabihf/",
"PKG_CONFIG_PATH=/usr/lib/arm-linux-gnueabihf/pkgconfig/",
"PKG_CONFIG_ALLOW_CROSS=true"
]
9 changes: 8 additions & 1 deletion Cross.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,11 @@
pre-build = [
"dpkg --add-architecture $CROSS_DEB_ARCH",
"apt-get update && apt-get install --assume-yes libdbus-1-dev:$CROSS_DEB_ARCH"
]
]

[target.arm-unknown-linux-gnueabihf.env]
passthrough = [
"RUSTFLAGS=-L /usr/arm-linux-gnueabihf/lib/ -L /usr/lib/arm-linux-gnueabihf/",
"PKG_CONFIG_PATH=/usr/lib/arm-linux-gnueabihf/pkgconfig/",
"PKG_CONFIG_ALLOW_CROSS=true"
]
4 changes: 3 additions & 1 deletion Dockerfile.template
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ RUN \
BINARY_ARCH_NAME="x86_64-unknown-linux-gnu" ;;\
"armv7hf") \
BINARY_ARCH_NAME="armv7-unknown-linux-gnueabihf" ;;\
"armv6") \
BINARY_ARCH_NAME="arm-unknown-linux-gnueabihf" ;;\
*) \
echo >&2 "error: unsupported architecture ($BALENA_ARCH)"; exit 1 ;; \
esac;\
Expand All @@ -33,4 +35,4 @@ RUN \

COPY scripts/start.sh .

CMD ["bash", "start.sh"]
CMD ["bash", "start.sh"]
Loading