From 7c3e5f108326865e239f1e0e59821437d7caaa64 Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Sun, 22 Aug 2021 18:20:02 +0200 Subject: [PATCH] added README --- .cargo/config.toml | 4 ++++ README.md | 39 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 .cargo/config.toml create mode 100644 README.md diff --git a/.cargo/config.toml b/.cargo/config.toml new file mode 100644 index 0000000..420c1bd --- /dev/null +++ b/.cargo/config.toml @@ -0,0 +1,4 @@ +[build] + +[target.armv7-unknown-linux-gnueabihf] +linker = "arm-linux-gnueabihf-gcc" diff --git a/README.md b/README.md new file mode 100644 index 0000000..370c80d --- /dev/null +++ b/README.md @@ -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. \ No newline at end of file