Build Environment

SBL build is supported on both Windows and Linux environments

Building on Linux

Supported environment: Ubuntu Linux 18.04 LTS

Install the following software:

  • GCC 7.3 or newer
  • Python 2.7
  • IASL 20160422
  • NASM
  • OpenSSL

Build Tools Download - Ubuntu

Install required packages on Ubuntu:

$ sudo apt-get install -y build-essential iasl python uuid-dev nasm openssl gcc-multilib qemu

Build using Dockers (Optional)

You can also consider Dockers containers to build SBL. See Miscellaneous: Dockers for more details.

Building on Windows

Supported environment: Microsoft Visual Studio 2015 Require: Include x64 C/C++ compiler tools with the installation as this is not the default option.

Install the exact versions (if specified) of the following tools to the designated directories:

  • Python 2.7 - C:\Python27
  • IASL 20160422 - C:\ASL
  • NASM - C:\Nasm
  • OpenSSL - C:\openssl

Build Tools Download - Windows

Python 2.7 - 64 bit version.

https://www.python.org/downloads/release/python-2713/

Require: v2.7.13 is the required version

Note

Add Python to the PATH

IASL 20160422-64

https://acpica.org/sites/acpica/files/iasl-win-20160422.zip

unzip then copy files to C:\asl

Require: Install to C:\Asl

Nasm 2.11

https://www.nasm.us/pub/nasm/releasebuilds/2.11.08/

Require: Install to C:\Nasm

Openssl (latest)

Download from https://indy.fulgan.com/SSL (the latest version: https://indy.fulgan.com/SSL/openssl-1.0.2-x64_86-win64.zip unzip then copy files to C:\\Openssl)

Require: Install to C:\Openssl

Note

Set environment variable OPENSSL_PATH to openssl directory, Cmd: set OPENSSL_PATH=C:\Openssl