docs: cross compile

This commit is contained in:
Timo Kösters 2020-10-18 08:48:31 +02:00
parent f56b463278
commit 151ef07fb3
No known key found for this signature in database
GPG key ID: 24DA7517711A2BA4
3 changed files with 24 additions and 0 deletions

13
CROSS_COMPILE.md Normal file
View file

@ -0,0 +1,13 @@
Install docker:
$ sudo apt install docker
$ sudo usermod -aG docker $USER
Then log out and back in.
$ sudo systemctl start docker
$ cargo install cross
$ cross build --release --features tls_vendored --target armv7-unknown-linux-musleabihf
The cross-compiled binary is at target/armv7-unknown-linux-musleabihf/release/conduit