1
0
Fork 0

Added build instruction

This commit is contained in:
Alexander Böhm 2024-01-05 15:01:24 +01:00
parent 344dabf250
commit f16bc27499
1 changed files with 22 additions and 0 deletions

View File

@ -10,3 +10,25 @@ Please change `DOOR_PIN` accordingly.
You need to provide the environment variables
`SPACEAPI_URL` and `API_KEY`.
## Build
[Install stable version of rust](https://rustup.rs/) and run a regular cargo build:
```sh
cargo build
```
### Cross compile
Install arm toolchain and *libmusl* for static linked binaries:
```sh
apt-get install gcc-arm-linux-gnueabihf musl-dev musl-tools
```
Build the application for raspberry pi:
```sh
cargo build --target=armv7-unknown-linux-musleabihf
```