From 8fc88ff03a568e12563ffe76be79596e5c842b1b Mon Sep 17 00:00:00 2001 From: Adrian Calinescu Date: Sun, 25 Mar 2018 17:39:23 +0300 Subject: [PATCH] Added ARMhf build info to README --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 73c0c4e..c10a111 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,11 @@ alias rust-musl-builder='docker run --rm -it -v "$(pwd)":/home/rust/src ekidd/ru rust-musl-builder cargo build --release ``` +To target ARM hard float (Raspberry Pi): +```sh +rust-musl-builder cargo build --target=armv7-unknown-linux-gnueabihf --release +``` + This command assumes that `$(pwd)` is readable and writable by uid 1000, gid 1000. It will output binaries in `target/x86_64-unknown-linux-musl/release`. At the moment, it doesn't attempt to cache libraries between builds, so this is best reserved for making final release builds. ## Deploying your Rust application