Visible to Intel only — GUID: adt1494361271077
Ixiasoft
3.3.4. Compiling the UEFI Source Code with the Linaro Tool Chain
This section explains how to compile the UEFI source code with the Linaro toolchain in a Linux system:
- Open a terminal and enter the following command:
$ cd <your directory that contain edk2 and edk2-platforms> $ export PATH=<your gcc directory>/\ gcc-arm-8.3-2019.03-x86_64-aarch64-linux-gnu/bin/:$PATH $ export CROSS_COMPILE= aarch64-linux-gnu- $ export ARCH=arm64 $ export GCC48_AARCH64_PREFIX=aarch64-linux-gnu-
- Set up the EDK_TOOLS_PATH:
$ export EDK_TOOLS_PATH=$PWD/edk2/BaseTools
- Set up the a PACKAGES_PATH to point to the location of the repositories:
$ export PACKAGES_PATH= $PWD/edk2:$PWD/edk2-platforms/
- Set up the WORKSPACE:
$ export WORKSPACE = $PWD
- Set up the build environment:
$ . edk2/edksetup.sh
- Build BaseTools (ensure the python tools are installed):
$ make -C edk2/BaseTools
- Compile the UEFI bootloader by entering the following command:
$ build -a AARCH64 -p Platform/Intel/Stratix10/Stratix10SoCPkg.dsc -t GCC48 -b DEBUG -y report.log -j build.log -Y PCD -Y LIBRARY -Y FLASH -Y DEPEX -Y BUILD_FLAGS -Y FIXED_ADDRESS
- Your terminal displays a "Build Done" message after the UEFI is successfully compiled.