Cross compile trusty from x86 linux host

Hi,

Am following the guide (atf_and_trusty_README.txt) to compile Arm trusted firmware and Trusty, I have downloaded the toolchain and exported CROSS_COMPILE to it’s path and can successfully compile the atf, but for trusty the makefile is looking for these env vars:

  • Jetson Xavier:
 make t186 PROJECT=t186 TARGET=t186 BUILDROOT=./t194ref \
     TOOLCHAIN_PREFIX="${CROSS_COMPILE_AARCH64}" \
     ARCH_arm_TOOLCHAIN_PREFIX="${CROSS_COMPILE_ARM}" \
     ARCH_arm64_TOOLCHAIN_PREFIX="${CROSS_COMPILE_AARCH64}" \
     DEBUG=0 DEBUG_LVL=0 DEFAULT_OTE_APP_DEBUGLEVEL=1 NOECHO=@ \
     TRUSTY_VARIANT=l4t-public TRUSTY_MULTI_GUEST_CONFIGURATION= \
     TARGET_SOC=t194

I’m guessing for CROSS_COMPILE_AARCH64 I can point to same location as CROSS_COMPILE?

Not sure what to do about CROSS_COMPILE_ARM

Any ideas?

downloaded toolchain with ‘hf’ in the name: https://developer.arm.com/-/media/Files/downloads/gnu-a/9.2-2019.12/binrel/gcc-arm-9.2-2019.12-x86_64-arm-none-linux-gnueabihf.tar.xz?revision=fed31ee5-2ed7-40c8-9e0e-474299a3c4ac&la=en&hash=76DAF56606E7CB66CC5B5B33D8FB90D9F24C9D20

and exported CROSS_COMPILE_ARM=<extracted dir>/bin/arm-none-linux-gnueabihf-"

The compile worked!

1 Like