Loading...
 

Build From Source - Toolchain

The ESPRESSObin board uses the Linaro toolchain for building binary kernel and file system images, so make sure to set it up first before building other components.

Begin by making a directory (in e.g. /home/user/toolchain) where the Linaro toolchain will be downloaded:

$ mkdir -p toolchain && cd toolchain

The Linaro toolchain can be downloaded from the link below:

https://releases.linaro.org/components/toolchain/binaries/5.2-2015.11-2/aarch64-linux-gnu/gcc-linaro-5.2-2015.11-2-x86_64_aarch64-linux-gnu.tar.xz

It can also be obtained via command line:

$ wget https://releases.linaro.org/components/toolchain/binaries/5.2-2015.11-2/aarch64-linux-gnu/gcc-linaro-5.2-2015.11-2-x86_64_aarch64-linux-gnu.tar.xz

Once the toolchain is downloaded, extract the archive with:

$ tar -xvf gcc-linaro-5.2-2015.11-2-x86_64_aarch64-linux-gnu.tar.xz

Lastly, set the correct path for the toolchain (compiler path including bin directory):

$ export PATH=$PATH:/home/espressobin/toolchain/gcc-linaro-5.2-2015.11-2-x86_64_aarch64-linux-gnu/bin
 Note
Be sure to replace the path above to where you downloaded the toolchain.