added README

This commit is contained in:
Robin Müller 2021-08-22 18:20:02 +02:00
parent e1f01371a0
commit 7c3e5f1083
No known key found for this signature in database
GPG Key ID: 71B58F8A3CDFA9AC
2 changed files with 43 additions and 0 deletions

4
.cargo/config.toml Normal file
View File

@ -0,0 +1,4 @@
[build]
[target.armv7-unknown-linux-gnueabihf]
linker = "arm-linux-gnueabihf-gcc"

39
README.md Normal file
View File

@ -0,0 +1,39 @@
Rust packages for the EIVE project
======
This repository contains the Rust packages used by the EIVE project.
# Build packages for the EIVE OBC
## `fsays`
```sh
cd ferris-says
cargo build -p fsays --target armv7-unknown-linux-gnueabihf --release
```
## `fortune`
```sh
cd fortune
cargo build armv7-unknown-linux-gnueabihf --release
```
# Prerequisites
1. Install rust on your development machine using `rustup`
```sh
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
```
2. Install standard library for target architecture
```sh
rustup target add armv7-unknown-linux-gnueabihf
```
3. Install a cross-compile toolchain for the Cortex-A9 target and add it to your path.
It is recommended to take the same toolchain used to compile the Q7S primary OBSW.
See the [dedicated README](https://egit.irs.uni-stuttgart.de/eive/eive-obsw)
for more details and download links.