Set up the development environment

This section of the guide shows you how to set up the environment on either a Linux or Windows development PC before starting to build EDKII firmware.

We use the following source repositories in this guide: 

Project Repository Repository URL Description;
Tianocore tianocore\edk2 https://github.com/tianocore/edk2.git The edk2 repository contains the firmware development environment and required packages for building the UEFI firmware.
Tianocore tianocore\edk2-platforms https://github.com/tianocore/edk2-platforms.git The edk2-platforms repository contains the platform workspace and associated modules.
ACPICA acpica\acpica https://github.com/acpica/acpica.git The Advanced Configuration and Power Interface (ACPI) Component Architecture (ACPICA) tools provide an open-source implementation of the iASL compiler.

The following steps show you how to set up your development environment:

  1. Launch a terminal window and create a workspace folder on your development PC called source. Set the WORKSPACE environment variable to point to this folder.
    This can be seen in the following code:
    In a Linux bash shell:
    cd <directory where you want to work>
    mkdir source
    cd source
    export WORKSPACE=$PWD
    
    In a Windows command prompt:
    cd <directory where you want to work>
    mkdir source
    cd source
    set WORKSPACE=%CD%
    
  2. Clone the source code repositories. In the terminal window, change directory to your workspace (source) folder and run the following commands:
    git clone https://github.com/tianocore/edk2-platforms.git
    git clone https://github.com/acpica/acpica.git
    git clone https://github.com/tianocore/edk2.git
    
  3. Go to the edk2 folder and update the submodules:
    cd edk2
    git submodule update --init
    cd ..
    
Previous Next