Intel® Arria® 10 SoC UEFI Boot Loader User Guide

ID 683536
Date 12/15/2017
Public
Document Table of Contents

1.5.3.5.1. Compiling the UEFI in a Windows Environment

This task describes how to compile the UEFI with the Linaro* GCC compiler.
  1. Open the command prompt.
  2. Change your directory to your working directory.
    $ cd <your_working_directory>/uefi-socfpga
  3. Set the SOCEDS_DEST_ROOT and the DS5_ROOT according to the location of the SoC FPGA EDS and Arm* DS-5* Intel® SoC FPGA Edition tools, respectively.
  4. Configure the RVCT_TOOLS_PATH correctly in the setup.bat file. For Intel® Quartus® Prime Pro Edition v16.1, set RVCT_TOOLS_PATH=%DS5_ROOT%\sw\ARMCompiler5.06u3\bin\ in the setup.bat file. In the previous setup file it is set to RVCT_TOOLS_PATH=%DS5_ROOT%\sw\ARMCompiler5.06u2\bin\ in setup.bat file. However, no ARMCompiler5.06u2 exists in the folder. Only the ARMCompiler5.06u3, ARMCompiler6.5 and ARMCompiler49Addon exist in the filepath. Therefore, you must correct this parameter path assignment. If you do not correct the path, the following reporting errors are generated:
    Cannot find armcc.exe
    Please install DS-5
  5. At the command prompt type: $ setup.
  6. Build the UEFI:
    $ make clean
    $ make
    Note: When you build the UEFI, ensure your path to the UEFI source code is not too long. You may encounter some errors when the path is too long in the Windows* environment. If you see an error similar to the screenshot below, shorten your path to the UEFI source code and recompile the source code again to remove the error.
    Figure 31. UEFI Build Errors from Lengthy Path Name