setup-build-debian.sh 341 B

123456789101112
  1. set -ex
  2. sudo apt-get update
  3. sudo apt-get install gcc-arm-linux-gnueabihf build-essential rsync
  4. curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
  5. ~/.cargo/bin/rustup target add armv7-unknown-linux-musleabihf
  6. cat << EOF >> ~/.cargo/config
  7. [target.armv7-unknown-linux-musleabihf]
  8. linker = "arm-linux-gnueabihf-gcc"
  9. EOF