The one of the following is required to be able to obtain the EDK II.
Name |
Version |
URL |
---|---|---|
TortoiseSVN |
1.4.5 |
|
Windows SVN Command Line Tool |
1.4.5 |
http://subversion.tigris.org/servlets/ProjectDocumentList?folderID=91 |
Max OS/X SVN Command Line Tool |
1.4.4 |
|
Linux SVN Command Line Tool |
1.4.5 |
The following tools are optional:
At least one 3rd party compiler tool chain is required.
Name |
Version |
URL |
---|---|---|
Cygwin1 |
Current |
|
Microsoft Visual Studio2 |
2005 Professional |
|
Microsoft Visual Studio3 |
2005 Team Suite |
|
Microsoft Visual Studio4 |
2003 .NET |
|
Intel C++ Compiler for Windows |
9.1 |
|
Intel C Compiler for EFI Byte Code |
1.2 |
http://www.intel.com/cd/software/products |
Microsoft Driver Development Kit5 (DDK) |
3790.1830 |
|
Microsoft ACPI Source Language Assembler |
3.0.0NT or later |
http://www.microsoft.com/whdc/system/pnppwr/powermgmt/default.mspx |
Intel ACPI Component Architecture |
20060113 or later |
|
1 Instructions for installation of GCC are included in the BaseTools\gcc directory.
2 The default tool chain for the IA32 and X64 builds.
3 Needed for building IPF targets if the DDK is not installed.
4 May only be available through a MSDN subscription.
5 The default tool chain for IPF builds.
After installing the compiler tools and your Subversion client, download the edk2, read the BuildNotes2.txt file and you will be ready to build an image.
All builds are started from a command prompt window.
If you optionally install cygwin (for gcc support) you should install it in "Unix" mode. The gcc tool chain will not compile in "DOS" mode.
Environment variables are case sensitive. You must use
the exact case as in the examples of this document. Even though
windows does not care about case, other operating systems that
are supported do care about case.
You need to set
WORKSPACE to the location of the edk2 directory that you pulled
from Subversion. For example:
set WORKSPACE=c:\workspace\edk2
It is recommended that you wrap up all the environment variables above into a script that you can launch each time you begin to do development in your EDK II workspace.
You will need to edit the text file, tools_def.txt which is created the first time you run the edksetup script6. The file is located in the %WORKSPACE%\Conf directory. This file contains the names of the compiler tool chains and the location of the compiler binaries. It has been pre-populated with the standard location for the Microsoft tool chains and includes the standard location of the Intel C Compiler for EFI Byte Code (EBC).
Once the external tools are installed and the environment variables are set, you can try a build.
The default build output directory is: %WORKSPACE%\Build\NT32\DEBUG_MYTOOLS\
6 The first time the edksetup script is executed, it
creates three files in the %WORKSPACE%\Conf directory. The files tools_def.txt, target.txt and
build_rule.txt are only created if they do not exist, if they exist, then they are
not touched.
7 The tools_def.txt file only needs to be modified the
first time, or if you modify the location of the 3rd party tool chains after
having setup the file.