Building the Final GCC - Linux Embedded systems

Now that all the necessary libraries are in order, you can build the final toolchain. This is the final step in the process; after it’s complete, the $INSTALLDIR directory contains a complete toolchain you can use for building applications for the target.

Configuring this toolchain is much like configuring the bootstrap toolchain. Notice that the configure statement points to the newly built GMP and MPFR libraries during the configure step and that the CC, LD, and AS variables aren’t overridden because you want to use the compiler on your build system. The executable that is produced runs on the build machine, but you’re producing code for the host machine:

Building the Final GCC

This build runs for about an hour, even on a reasonably fast machine. When it’s complete, your computer has a cross-compiler installed at $INSTALLDIR.

All rights reserved © 2020 Wisdom IT Services India Pvt. Ltd Protection Status

Linux Embedded systems Topics