Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

UDK2014 - How To Build

Build Instructions

Download the UDK2014 Release with expanded workspace directories DownLoad

UDK2014 Release Files / Directories

What is included in the Downloaded zip file

  • UDK2014.MyWorkSpace.zip
  • BaseTools(Windows).zip
  • BaseTools(Unix).tar
  • Documents
  • Notes

Windows System Configuration

Microsoft Windows 7 Ultimate 64-bit*

1. Setup Build Environment

  • 1) Install Microsoft Visual Studio 2008* SP1 in the build machine and make sure that AMD64 complier was selected when installing.

2. Extract Common Source Code

  • 1) Extract files in [UDK2014.MyWorkSpace.zip] to the working space directory (e.g C:). Note the Directory "MyWorkSpace" will be created as a result. In this case, it is C:\MyWorkspace.
  • 2) There are two BaseTools package one is for Windows system and another is for UNIX-Like system. Please make sure BaseTools(Windows).zip is used here. Expand the appropriate BaseTools to C:\MyWorkSpace

3. Generate OpenSSL* Crypto Library Note: this does not need to be done for Nt32

  • Open file "C:\MyWorkspace\CryptoPkg\Library\OpensslLib\Patch-HOWTO.txt" and follow the instruction to install OpenSSL* for UEFI building.

4. Build Steps *** NT32 ***

  • 1) Open a command prompt, type command "cd C:\MyWorkspace" to enter the workspace directory, and then type command

> edksetup --nt32

to initialize the working environment. See also: Windows systems ToolChain Matrix for how to change the TOOL_CHAIN_TAG for supported compiler combinations.

  • 2) Type below commands to build platforms (below assumes Microsoft Visual Studio 2008)

> build -t VS2008x86

Note: There are two methods to select the tool chain (Use Microsoft Visual Studio 2008* as sample):

  • 1. Update TOOL_CHAIN_TAG in file Conf/target.txt: TOOL_CHAIN_TAG = VS2008
  • 2. Add -t build option in command line: "build -t VS2008 ... "

For 32-bit VS2008 on 64-bit WINDOWS OS, VS2008x86 should be selected instead of VS2008. Please refer to tools_def.txt for all supported tool chains and detailed descriptions. (tools_def.txt will be generated at Conf directory after running "edksetup".)

  • 3. Note Microsoft Visual Studio* 2010 is supported with -t VS2010 or -t VS2010x86

Unix-Like System Configuration

Ubuntu

DistributorID: Ubuntu*

Description: Ubuntu 10*

Release: Ubuntu 10.10*

Codename: Karmic*

1. Extract Common Source Code

example, ~/src/ directory. In this case, it is ~/src/MyWorkSpace where /MyWorkSpace is created. another is for UNIX-Like system. Please make sure BaseTools(Unix).tar is used here.

2. Generate OpenSSL* Crypto Library Note: This does not need to be done for Nt32 Open file "~/src/MyWorkspace/CryptoPkg/Library/OpensslLib/Patch-HOWTO.txt" and follow the instruction to install OpenSSL* for UEFI building.

3. See How to Set up Build environment Using EDK II with Native GCC for newer versions of Linux

"~/src/edk2" compiler is installed well.

4. Build Steps *** Nt32 ***

workspace directory.

>. edksetup.sh BaseTools

> build -t GCC44