-
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.
See https://github.com/cross-rs/cross/wiki/Configuration#builddockerfile for context regarding the $CROSS_BASE_IMAGE environment variable. Here, it resolves to ghcr.io/cross-rs/armv7-unknown-linux-gnueabihf:{{cross_version}} Relies on docker caching instead of pre-building the image. Cross made the change to the GHCR on cross-rs/cross#609 Add newline at EOF for some files.
- Loading branch information
Showing
3 changed files
with
5 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
[target.armv7-unknown-linux-gnueabihf] | ||
image = "cross/cpal_armv7:v1" | ||
dockerfile = "Dockerfile" | ||
|
||
[target.armv7-unknown-linux-gnueabihf.env] | ||
passthrough = [ | ||
"RUSTFLAGS", | ||
] | ||
] |
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 |
---|---|---|
@@ -1,9 +1,10 @@ | ||
FROM rustembedded/cross:armv7-unknown-linux-gnueabihf | ||
ARG CROSS_BASE_IMAGE | ||
FROM $CROSS_BASE_IMAGE | ||
|
||
ENV PKG_CONFIG_ALLOW_CROSS 1 | ||
ENV PKG_CONFIG_PATH /usr/lib/arm-linux-gnueabihf/pkgconfig/ | ||
|
||
RUN dpkg --add-architecture armhf && \ | ||
apt-get update && \ | ||
apt-get install libasound2-dev:armhf -y && \ | ||
apt-get install libjack-jackd2-dev:armhf libjack-jackd2-0:armhf -y \ | ||
apt-get install libjack-jackd2-dev:armhf libjack-jackd2-0:armhf -y \ |