diff --git a/red/Cross.toml b/red/Cross.toml new file mode 100644 index 0000000..d97aed6 --- /dev/null +++ b/red/Cross.toml @@ -0,0 +1,2 @@ +[target.armv7-unknown-linux-gnueabihf] +dockerfile = "./Dockerfile" diff --git a/red/Dockerfile b/red/Dockerfile new file mode 100644 index 0000000..0c9fe27 --- /dev/null +++ b/red/Dockerfile @@ -0,0 +1,2 @@ +FROM ghcr.io/cross-rs/armv7-unknown-linux-gnueabihf +RUN dpkg --add-architecture armhf && apt-get update && apt-get install --assume-yes libudev-dev:armhf diff --git a/red/justfile b/red/justfile index 8945968..8fdf69f 100644 --- a/red/justfile +++ b/red/justfile @@ -1,7 +1,7 @@ url := "olimex@muele.local" build: - cargo build --target=armv7-unknown-linux-gnueabihf + cross build --target=armv7-unknown-linux-gnueabihf rrun: #scp -r ./src {{url}}:red/