How to get cross CIF for building LiteOS » History » Version 1
Evgeny Novikov, 08/12/2020 11:12 AM
1 | 1 | Evgeny Novikov | h1. How to get cross CIF for building LiteOS |
---|---|---|---|
2 | |||
3 | Instructions are for Ubuntu 18.04. |
||
4 | |||
5 | $ sudo apt-get install autoconf automake libtool libexpat1-dev libncurses5-dev bison flex patch texinfo build-essential gawk gperf help2man libtool-bin |
||
6 | |||
7 | Install CIF as usual. Below it is assumed that CIF sources and build files are within directory ~/cif. |
||
8 | |||
9 | Download the ZIP archive from https://github.com/stephanosio/crosstool-ng/tree/newlib_nano_variant to the home directory. At the moment of writing this document the corresponding pull request was not accepted yet. Extract the ZIP archive. After that go to directory ~/crosstool-ng-newlib_nano_variant and execute the following commands: |
||
10 | $ ./bootstrap |
||
11 | $ ./configure --enable-local |
||
12 | $ make |
||
13 | |||
14 | h2. Build cross CIF |
||
15 | $ mkdir ~/cif/build/cross |
||
16 | Download file .config attached to this page into ~/cif/build/cross. Replace username "novikov" with your one if necessary within ~/cif/build/cross/.config. |
||
17 | $ ~/crosstool-ng-newlib_nano_variant/ct-ng build |
||
18 | |||
19 | h2. Get and build LiteOS |
||
20 | $ git clone https://github.com/LiteOS/LiteOS.git |
||
21 | $ cd ~/LiteOS/targets/Cloud_STM32F429IGTx_FIRE/GCC |
||
22 | Perhaps you need to replace username "novikov" with your one. |
||
23 | $ export PATH=$PATH:/home/novikov/x-tools/arm-unknown-eabihf/bin |
||
24 | $ make |