===== Overview ===== Setting up ARM toolchain for U-Boot -- for validation, see if it compiles Zedboard: $ make zynq_zed_defconfig ===== The possibilities ===== ==== Fedora 30 package gcc-arm-linux-gnu ==== The package: $ rpm -qi gcc-arm-linux-gnu Name : gcc-arm-linux-gnu Version : 8.2.1 Release : 1.fc30.2 Architecture: x86_64 Install Date: Thu 21 Mar 2019 09:29:31 AM EDT Group : Unspecified Size : 81242502 License : GPLv3+ and GPLv3+ with exceptions and GPLv2+ with exceptions and LGPLv2+ and BSD Signature : RSA/SHA256, Sun 03 Feb 2019 05:45:32 PM EST, Key ID ef3c111fcfc659b9 Source RPM : cross-gcc-8.2.1-1.fc30.2.src.rpm Build Date : Thu 31 Jan 2019 01:50:01 PM EST Build Host : buildhw-08.phx2.fedoraproject.org Relocations : (not relocatable) Packager : Fedora Project Vendor : Fedora Project URL : http://gcc.gnu.org Bug URL : https://bugz.fedoraproject.org/cross-gcc Summary : Cross-build binary utilities for arm-linux-gnu Description : Cross-build GNU C compiler. Only building kernels is currently supported. Support for cross-building user space programs is not currently provided as that would massively multiply the number of packages. $ $ type arm-linux-gnu-gcc arm-linux-gnu-gcc is /usr/bin/arm-linux-gnu-gcc $ For Zedboard: $ export CROSS_COMPILE=arm-linux-gnu- Seems to work. ==== Xilinx SDK ==== $ PATH=$PATH:~/xilinx/tools/SDK/2018.3/gnu/aarch32/lin/gcc-arm-linux-gnueabi/bin $ export CROSS_COMPILE=arm-linux-gnueabihf- Compiles. ==== Linaro gcc-arm-8.3-2019.03-x86_64-arm-linux-gnueabihf.tar.xz ==== $ PATH=~/tc/gcc-arm-8.3-2019.03-x86_64-arm-linux-gnueabihf/bin:$PATH $ type arm-linux-gnueabihf-gcc arm-linux-gnueabihf-gcc is /home/rpjday/tc/gcc-arm-8.3-2019.03-x86_64-arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc $ export CROSS_COMPILE=arm-linux-gnueabihf- $ make zynq_zed_defconfig $ make Seems to work.