ソースを参照

Add a script to prepare a debian machine to cross build durio.

Jing Yang 2 年 前
コミット
4d0f07bc7e
1 ファイル変更12 行追加0 行削除
  1. 12 0
      durio/setup-build-debian.sh

+ 12 - 0
durio/setup-build-debian.sh

@@ -0,0 +1,12 @@
+set -ex
+
+sudo apt-get update
+sudo apt-get install gcc-arm-linux-gnueabihf build-essential rsync
+curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
+~/.cargo/bin/rustup target add armv7-unknown-linux-musleabihf
+
+cat << EOF >> ~/.cargo/config
+
+[target.armv7-unknown-linux-musleabihf]
+linker = "arm-linux-gnueabihf-gcc"
+EOF