To configure the Cross Compiler Options, you must select the type of toolchain, point to the toolchain, specify the sysroot location, and select the target architecture.
Selecting the Toolchain Type:
Choose between Standalone pre-built toolchain
and Build system derived toolchain
for Cross
Compiler Options.
Standalone Pre-built Toolchain:
Select this mode when you are using a stand-alone cross-toolchain.
For example, suppose you are an application developer and do not
need to build a target image.
Instead, you just want to use an architecture-specific toolchain on an
existing kernel and target root filesystem.
Build System Derived Toolchain:
Select this mode if the cross-toolchain has been installed and built
as part of the
Build Directory.
When you select Build system derived toolchain
,
you are using the toolchain bundled
inside the Build Directory.
Point to the Toolchain:
If you are using a stand-alone pre-built toolchain, you should be pointing to the
where it is installed.
If you used the ADT Installer script and accepted the default
installation directory, the toolchain will be installed in
the /opt/poky/1.4
directory.
Sections "Configuring
and Running the ADT Installer Script" and
"Using a Cross-Toolchain Tarball"
in the Yocto Project Application Developer's Guide
describe how to install a stand-alone cross-toolchain.
If you are using a system-derived toolchain, the path you provide
for the Toolchain Root Location
field is the Build Directory.
See the "Using
BitBake and the Build Directory" section in the Yocto Project Application
Developer's Guide for information on how to install
the toolchain into the Build Directory.
Specify the Sysroot Location:
This location is where the root filesystem for the target hardware resides.
If you used the ADT Installer script and accepted the
default installation directory, then the location is
/opt/poky/<release>
.
Additionally, when you use the ADT Installer script,
the same location is used for
the QEMU user-space tools and the NFS boot process.
If you used either of the other two methods to install the toolchain or did not accept the ADT Installer script's default installation directory, then the location of the sysroot filesystem depends on where you separately extracted and installed the filesystem.
For information on how to install the toolchain and on how to extract and install the sysroot filesystem, see the "Installing the ADT and Toolchains" section.
Select the Target Architecture:
The target architecture is the type of hardware you are
going to use or emulate.
Use the pull-down Target Architecture
menu to make
your selection.
The pull-down menu should have the supported architectures.
If the architecture you need is not listed in the menu, you
will need to build the image.
See the "Building an Image" section
of the Yocto Project Quick Start for more information.