...
Many software items, such as Linux, use the environment variable CROSS_COMPILE, to invoke the cross compiler that is used to build it (SDK must be installed). Also the $PATH environment variable has to be extended to find the newly installed tools.
Code Block |
---|
|
bash$ export CROSS_COMPILE=<x-tool prefix>
bash$ source <Xilinx Tools installation directory>/ISE_DS/settings64.sh # use settings32.sh on 32-bit operating systems |
The Xilinx tools provide the following cross toolchains:
Target Architecture | x-tool prefix |
Zynq-7000 (CodeSourcery - soft float) | arm-xilinx-linux-gnueabi- |
Zynq-7000 (Linaro - hard float) | arm-linux-gnueabihf- |
Zynq UltraScale+ MPSoC (ZynqMP) / Versal | aarch64-linux-gnu- |
Microblaze little endian | microblazeel-xilinx-linux-gnu- |
Microblaze big endian | microblaze-xilinx-linux-gnu- |
PowerPC | powerpc-eabi- |