Skip to content

Latest commit

 

History

History
35 lines (22 loc) · 856 Bytes

File metadata and controls

35 lines (22 loc) · 856 Bytes

Cross Compilation to Raspberry Pi(ARMv7)

From: Rust{: .button}

Build with cargo build --target=armv7-unknown-linux-musleabihf

Requires the target armv7-unknown-linux-musleabihf

Prerequisites

  • rustup target add armv7-unknown-linux-musleabihf
  • brew install arm-linux-gnueabihf-binutils to install gnueabihf-binutils

Extra Config

[target.armv7-unknown-linux-musleabihf]
linker = "arm-linux-gnueabihf-ld"

Notes

It was not possible to install ARM gcc in Mac so ended up having to switch the target into musl-gcc, so that the binary can be statically linked in the ARM environment

References

Zettle

Id: 488bc11bcd111caa54bb20e6ea86f40a Links:

  • 4505d22dcf996cbab8e559dce609e5a1