AR# 59553


PetaLinux 2013.10 - Can I Use A Cross-Compiler Other Than the Built-In CodeSourcery Tools


I would like to use a cross-compiler other than the default toolchain included with PetaLinux.  Is this possible?


Yes, this is possible.  In order to enable this, please set the following two environment variables:

EXTERN_COMPILER = The full path to the location of the cross-compiler toolchain (example: EXTERN_COMPILER=/opt/tools/cross-compiler/)

CROSS_COMPILE = the toolchain prefix for the cross-compiler toolchain (example: CROSS_COMPILE=my-tool-chain-linux-eabi-)

In order to disable the use of the external compiler, simply remove or rename these environment variables.  

Note: external compilers are not tested with PetaLinux and using them may result in unexpected/undesired behavior.

AR# 59553
Date 04/23/2014
Status Active
Type General Article
People Also Viewed