You can use existing, pre-built toolchains by locating and running an SDK installer script that ships with the Yocto Project. Using this method, you select and download an architecture-specific toolchain installer and then run the script to hand-install the toolchain.
You can find SDK installers here:
Standard SDK Installers
Go to http://downloads.yoctoproject.org/releases/yocto/yocto-2.2/toolchain/
and find the folder that matches your host development system
(i.e. i686
for 32-bit machines or
x86_64
for 64-bit machines).
Go into that folder and download the toolchain installer
whose name includes the appropriate target architecture.
The toolchains provided by the Yocto Project are based off of
the core-image-sato
image and contain
libraries appropriate for developing against that image.
For example, if your host development system is a 64-bit x86
system and you are going to use your cross-toolchain for a
32-bit x86 target, go into the x86_64
folder and download the following installer:
poky-glibc-x86_64-core-image-sato-i586-toolchain-2.2.sh
Extensible SDK Installers Installers for the extensible SDK are in http://downloads.yoctoproject.org/releases/yocto/yocto-2.2/toolchain/.