瀏覽代碼

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