secondid 2020-06-06
以armv5为例:
1.下载编译链:
apt install arm-linux-gnueabi-gcc
2. 配置
配置文件路径:~/.crago/config
[target.armv5te-unknown-linux-gnueabi]
linker="arm-linux-gnueabi-gcc"
3. 编译
cargo build --target=armv5te-unknown-linux-gnueabi
或者cargo build --target=armv5te-unknown-linux-gnueabi --release
4. 未知作用
rustup target add armv5te-unknown-linux-gnueabi