We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

Showing results for 
Search instead for 
Did you mean: 
Visitor jacklovell
Registered: ‎10-21-2014

Can't use external toolchain with Petalinux



I'm trying to compile a Petalinux system for Zybo with hard-float instructions. Since this doesn't seem to be supported by Petalinux's ARM toolchain, I want to use Linaro's arm-linux-gnueabihf toolchain. I've looked at AR #59553, which suggests setting the EXTERN_COMPILER and CROSS_COMPILE environment variables, but Petalinux seems to be ignoring these, and building with arm-xilinx-linux-gnueabi regardless.


I've run the following commands, in order:

export EXTERN_COMPILER=/home/jlovell/Software/gcc-linaro-arm-linux-gnueabihf-4.8-2014.04_linux/

export CROSS_COMPILE=arm-linux-gnueabihf-

source ~/Software/Xilinx/Vivado/2014.4/settings32.sh

source ~/Software/Xilinx/Petalinux/petalinux-v2014.4-final/settings.sh

petalinux-build -x distclean

petalinux-build # Produces u-boot and rootfs binaries compiled with arm-xilinx-linux-gnueabi


How do I fix this?


I'm using Vivado 2014.4, Petalinux 2014.4 on Scientific Linux 6.6 (clone of RHEL 6.6)?

0 Kudos