Project

General

Profile

How to get cross CIF for building LiteOS » History » Version 2

Evgeny Novikov, 08/12/2020 11:14 AM

1 1 Evgeny Novikov
h1. How to get cross CIF for building LiteOS
2
3
Instructions are for Ubuntu 18.04.
4
5 2 Evgeny Novikov
Install prerequisites:
6
<pre>
7 1 Evgeny Novikov
$ sudo apt-get install autoconf automake libtool libexpat1-dev libncurses5-dev bison flex patch texinfo build-essential gawk gperf help2man libtool-bin
8 2 Evgeny Novikov
</pre>
9 1 Evgeny Novikov
10
Install CIF as usual. Below it is assumed that CIF sources and build files are within directory ~/cif.
11
12
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:
13 2 Evgeny Novikov
<pre>
14 1 Evgeny Novikov
$ ./bootstrap
15
$ ./configure --enable-local
16
$ make
17 2 Evgeny Novikov
</pre>
18 1 Evgeny Novikov
19
h2. Build cross CIF
20 2 Evgeny Novikov
21
<pre>
22 1 Evgeny Novikov
$ mkdir ~/cif/build/cross
23 2 Evgeny Novikov
</pre>
24 1 Evgeny Novikov
Download file .config attached to this page into ~/cif/build/cross. Replace username "novikov" with your one if necessary within ~/cif/build/cross/.config.
25 2 Evgeny Novikov
<pre>
26 1 Evgeny Novikov
$ ~/crosstool-ng-newlib_nano_variant/ct-ng build
27 2 Evgeny Novikov
</pre>
28 1 Evgeny Novikov
29
h2. Get and build LiteOS
30 2 Evgeny Novikov
31
<pre>
32 1 Evgeny Novikov
$ git clone https://github.com/LiteOS/LiteOS.git
33
$ cd ~/LiteOS/targets/Cloud_STM32F429IGTx_FIRE/GCC
34 2 Evgeny Novikov
</pre>
35 1 Evgeny Novikov
Perhaps you need to replace username "novikov" with your one.
36 2 Evgeny Novikov
<pre>
37 1 Evgeny Novikov
$ export PATH=$PATH:/home/novikov/x-tools/arm-unknown-eabihf/bin
38
$ make
39 2 Evgeny Novikov
</pre>