User's Manual

2. Getting Started
6.
Install toolchain.
cd crosstool-NG/
./bootstrap && ./configure --prefix=`pwd` && make && make install
For auto-completion, do not forget to install 'ct-ng.comp' into
your bash completion directory (usually /etc/bash_completion.d)
username:/opt/Espressif/crosstool-NG$
./ct-ng xtensa-esp108-elf
***********************************************************
WARNING! This sample may enable experimental features.
Please be sure to review the configuration prior
to building and using your toolchain!
Now, you have been warned!
***********************************************************
Now configured for "xtensa-esp108-elf"
username:/opt/Espressif/crosstool-NG$
./ct-ng build
[INFO ] Cleaning-up the toolchain's directory
[INFO ] Stripping all toolchain executables
[INFO ] Cleaning-up the toolchain's directory: done in 1.85s (at
24:28)
[INFO ] Build completed at 20151210.175153
[INFO ] (elapsed: 24:27.54)
[INFO ] Finishing installation (may take a few seconds)...
7.
Set the PATH variable to point to the newly compiled toolchain.
export PATH=/opt/Espressif/crosstool-NG/builds/xtensa-esp108-elf/bin:
$PATH
Note:
It takes about dozens of minutes to build toolchain.
Notice:
Make sure you set the correct path, or it will occur a compile error.
Espressif
2015.12
Confidential