Compiling Trusted Firmware A for ARM FVP

git clone https://review.trustedfirmware.org/TF-A/trusted-firmware-a
cd trusted-firmware-a

# Export GCC cross compiler used by make
export CROSS_COMPILE=~/Programs/gcc-arm-10.3-2021.07-x86_64-aarch64-none-elf/bin/aarch64-none-elf-
# Open Makefile and change '-Os' to '-O0' to disable small size optimization

# Compile firmware for FVP platform (Foundation or Base)
make DEBUG=1 PLAT=fvp all
make -C tools/fiptool/
make DEBUG=1 FVP_TRUSTED_SRAM_SIZE=512 plat=fvp V=1 certtool
make DEBUG=1 FVP_TRUSTED_SRAM_SIZE=512 plat=fvp V=1 enctool

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *