Commit 48f78dcf authored by Oliver Horst's avatar Oliver Horst
Browse files

[chg] Added missing dependency and how-to update newlib's build-system

parent a1429108
...@@ -42,6 +42,7 @@ To use toki, the following dependencies need to be installed on your system. ...@@ -42,6 +42,7 @@ To use toki, the following dependencies need to be installed on your system.
* curl * curl
* chrpath * chrpath
* dialog * dialog
* diffstat
* gawk * gawk
* git * git
* python3 >= 3.6 * python3 >= 3.6
...@@ -62,8 +63,8 @@ To use toki, the following dependencies need to be installed on your system. ...@@ -62,8 +63,8 @@ To use toki, the following dependencies need to be installed on your system.
On Ubuntu based systems you can install all required dependencies by running: On Ubuntu based systems you can install all required dependencies by running:
```bash ```bash
$ sudo apt-get install curl dialog git python3 python3-pip repo chrpath gawk texinfo $ sudo apt-get install curl dialog diffstat git python3 python3-pip repo chrpath gawk texinfo
$ sudo pip3 install automat pythondialog mako in_place urllib3 $ python3 -m pip install --upgrade --user automat pythondialog mako in_place urllib3
``` ```
Unfortunately, Ubuntu up to 19.10 ships a too old version of Google's repo tool. Hence, you need to manually install it with the help of the following commands: Unfortunately, Ubuntu up to 19.10 ships a too old version of Google's repo tool. Hence, you need to manually install it with the help of the following commands:
```bash ```bash
...@@ -590,6 +591,22 @@ For reference, the specific implementation of the kernel side and application si ...@@ -590,6 +591,22 @@ For reference, the specific implementation of the kernel side and application si
- Application side: ``components/newlib/newlib/libc/sys/aarch64/syscalls.S`` (Baremetal) and ``components/newlib/newlib/libc/sys/freertos/syscalls.S`` (FreeRTOS) - Application side: ``components/newlib/newlib/libc/sys/aarch64/syscalls.S`` (Baremetal) and ``components/newlib/newlib/libc/sys/freertos/syscalls.S`` (FreeRTOS)
#### <a name="toki-newlib-buildsystem"></a> Adjusting the newlib build-system
In case you would like to extend the FreeRTOS sys port for newlib with new features or otherwise add/change something to/within newlib it is likely that you will need to update the autotools based build-system of newlib as well at some point. Unfortunately, newlib still relies on automake v1.12 and autoconf v2.64, versions not widely available nowadays. Hence, we have incorporated the correct versions of these tools within our [toki Docker container](#toki-docker).
Please use the following commands to activate the right autoconf and automake versions for your use-case:
```bash
$ sudo update-alternatives --config autoconf
$ sudo update-alternatives --config automake
```
After enabling automake v1.12 and autoconf v2.64, please change into the folder ``components/newlib/newlib`` and run the following command, to update newlib's build-system:
```bash
$ autoreconf -vfi
```
#### <a name="toki-pull-upstream-extension"></a> Integrating new components into the toki-pull-upstream process #### <a name="toki-pull-upstream-extension"></a> Integrating new components into the toki-pull-upstream process
*TBD* *TBD*
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment