From 2a7f6f3b9bd34a9536af9e0ce17b7529f3bef00e Mon Sep 17 00:00:00 2001
From: "joachim.schmidt" <joachim.schmidt@hesge.ch>
Date: Wed, 20 Oct 2021 19:58:11 +0200
Subject: [PATCH] Update README.md

---
 README.md | 29 ++++++++++++++++++++++++++++-
 1 file changed, 28 insertions(+), 1 deletion(-)

diff --git a/README.md b/README.md
index 82e2882..6663e55 100644
--- a/README.md
+++ b/README.md
@@ -1,3 +1,30 @@
 # scalplinux-toolchain
 
-Scalp Linux Toolchain
\ No newline at end of file
+## Howto download Scalp Linux Toolchain
+
+```bash
+$ cd /opt
+$ sudo git clone https://gitedu.hesge.ch/soma/scalplinux-toolchain.git
+$ echo -n "export SCALPLINUX_TOOLCHAIN=\"/opt/scalplinux-toolchain/board/scalp/cross/bin/\"" >> ~/.bashrc
+$ echo -n "export PATH=\${PATH}:\${SCALPLINUX_TOOLCHAIN}"
+```
+
+## Howto compile a new program for the Scalp target with a Makefile
+
+```bash
+$ export CROSS_COMPILE=arm-scalp-linux-gnueabihf-
+$ export ARCH=arm
+$ make
+```
+
+Or ...
+
+```bash
+$ CROSS_COMPILE=arm-scalp-linux-gnueabihf- ARCH=arm make
+```
+
+## Howto compile a new program for the Scalp target without a Makefile
+
+```bash
+$ arm-scalp-linux-gnueabihf-gcc -o <BIN_NAME> <SOURCE_NAME>.c
+```
-- 
GitLab