Intel Stratix 10 SoC UEFI Boot Loader User Guide

ID 683134
Date 6/19/2020
Public

3.2.3. Building the ATF

This section describes how to build the ATF with the Linaro GCC compiler.

To start building the ATF with the Linaro GCC compiler, simply run the following steps:

  1. Change your directory to the ATF source code location as follows:
    $ cd arm-trusted-firmware
  2. Set the GCC path and environment variable CROSS_COMPILE to Linaro cross compile as follows:
    export PATH=<your gcc directory>/\
    gcc-arm-8.3-2019.03-x86_64-aarch64-linux-gnu/bin/:$PATH
    $ export ARCH=arm64
    $ export CROSS_COMPILE=aarch64-linux-gnu-
  3. Remove the build tree completely as follows:
    $ make realclean
  4. Build the ATF by using the following command:
    $ make PLAT=stratix10 bl2 bl31
  5. The following messages appear when the ATF build is successful:
  6. The table below lists the Secure Monitor output files.
    Table 2.  Descriptions of Secure Monitor Files

    File Path and Name

    Description

    \build\stratix10\release\bl31.bin

    Generated binary file

    \build\stratix10\release\bl31\bl31.elf

    Generated elf file

    \build\stratix10\release\bl2.bin

    Generated binary file

    \build\stratix10\release\bl2\bl2.elf

    Generated elf file