Skip to content

Instantly share code, notes, and snippets.

@echelon
Created December 22, 2015 08:29
Show Gist options
  • Select an option

  • Save echelon/a9a288049d8b1a1723b1 to your computer and use it in GitHub Desktop.

Select an option

Save echelon/a9a288049d8b1a1723b1 to your computer and use it in GitHub Desktop.
Rust Raspberry Pi cross-compilation
# https://github.com/Ogeon/rust-on-raspberry-pi/blob/master/MANUAL.md
git clone https://github.com/raspberrypi/tools.git ~/pi-tools
git clone https://github.com/rust-lang/rust.git && cd rust
git checkout 1.5.0 # or whatever version tag
export PATH=~/pi-tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin:$PATH
./configure --target=arm-unknown-linux-gnueabihf --prefix=$HOME/pi-rust
make -j4 && make install
# See instructions in link above
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment