Actions
How to get cross CIF for building LiteOS » History » Revision 3
« Previous |
Revision 3/7
(diff)
| Next »
Evgeny Novikov, 08/12/2020 11:22 AM
How to get cross CIF for building LiteOS¶
Instructions are for Ubuntu 18.04.
Install prerequisites:
$ sudo apt-get install autoconf automake libtool libexpat1-dev libncurses5-dev bison flex patch texinfo build-essential gawk gperf help2man libtool-bin
Install CIF as usual. Below it is assumed that CIF sources and build files are within directory ~/cif.
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:
$ ./bootstrap $ ./configure --enable-local $ make
Build cross CIF¶
$ mkdir ~/cif/build/cross
Download file .config attached to this page into ~/cif/build/cross. Replace username novikov with your one if necessary within ~/cif/build/cross/.config.
$ ~/crosstool-ng-newlib_nano_variant/ct-ng build
Get and build LiteOS¶
$ git clone https://github.com/LiteOS/LiteOS.git $ cd ~/LiteOS/targets/Cloud_STM32F429IGTx_FIRE/GCC
Perhaps you need to replace username novikov with your one.
$ export PATH=$PATH:/home/novikov/x-tools/arm-unknown-eabihf/bin $ make
Updated by Evgeny Novikov over 4 years ago · 7 revisions