tools: target armv7 musleabihf

This commit is contained in:
oopsbagel
2025-04-21 13:41:31 -07:00
committed by Will Greenberg
parent e04b78f0e0
commit f2028a704f
2 changed files with 3 additions and 5 deletions
+1 -3
View File
@@ -1,5 +1,3 @@
FROM rust:1.86-bullseye
RUN apt-get update
RUN apt-get install -y build-essential libc6-armhf-cross libc6-dev-armhf-cross gcc-arm-linux-gnueabihf
RUN rustup target add armv7-unknown-linux-gnueabihf
RUN rustup target add armv7-unknown-linux-musleabihf
+2 -2
View File
@@ -9,9 +9,9 @@
# ./tools/run-docker-devenv
#
# Inside the shell:
# cargo build --bin rayhunter-daemon --target armv7-unknown-linux-gnueabihf --release
# cargo build --bin rayhunter-daemon --target armv7-unknown-linux-musleabihf --release
#
# Your output binary is in ./target/armv7-unknown-linux-gnueabihf/release/rayhunter-daemon
# Your output binary is in ./target/armv7-unknown-linux-musleabihf/release/rayhunter-daemon
docker build -t rayhunter-devenv -f tools/devenv.dockerfile .
exec docker run --user $UID:$GID -v ./:/workdir -w /workdir -it rayhunter-devenv "$@"