-
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.
- Loading branch information
Showing
3 changed files
with
16 additions
and
9 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
[target.armv7-unknown-linux-gnueabihf] | ||
# The tag name from the `docker build -t crossbuild:local -f crossbuild.Dockerfile .` command | ||
#image = "crossbuild:local" | ||
# image = "crossbuild:local" | ||
image = "ghcr.io/chriamue/ornithology-pi/crossbuild: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
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,11 @@ | ||
FROM rustembedded/cross:armv7-unknown-linux-gnueabihf-0.2.1 | ||
FROM rust:bullseye | ||
|
||
RUN rustup target add armv7-unknown-linux-gnueabihf | ||
WORKDIR /build | ||
|
||
RUN apt-get update | ||
RUN dpkg --add-architecture armhf && \ | ||
apt-get update && \ | ||
apt-get install --assume-yes libdbus-1-dev:armhf libgstreamer1.0-dev:armhf libgstreamer-plugins-base1.0-dev:armhf | ||
apt-get install -y libc6-armhf-cross libc6-dev-armhf-cross gcc-arm-linux-gnueabihf libclang-dev | ||
RUN apt-get install --assume-yes crossbuild-essential-armhf libdbus-1-dev:armhf libgstreamer1.0-dev:armhf libgstreamer-plugins-base1.0-dev:armhf | ||
|
||
ENV PKG_CONFIG_LIBDIR_armv7_unknown_linux_gnueabihf=/usr/lib/arm-linux-gnueabihf/pkgconfig |