UDK2015 is a stable release of portions of the Edkii project.
This document records the process of compiling UDK2015 with VS2012 under Win7.
STEP1, download source Code
SVN Address:
https://svn.code.sf.net/p/edk2/code/branches/UDK2015
STEP2, run script edksetup.bat Windows command line input: Edksetup--nt32
[Note: If you compile IA32 image,driver or application, you must have the--nt32 parameter, otherwise there will be some inexplicable build errors; target_arch=x64, without--nt32 parameters, can be compiled normally]
STEP3, modify Conf/target.txt
Modify Tool_chain_tag = vs2012x86 Reference: Windows Systems Toolchain_matrix
SETP4, Build IA32 BIOS Image
Windows command-line input: Build
STEP5, Run BIOS Image with Windows NT emulation:
Command line input: Build Run
Press F2 to enter the Setup interface
Build X64 UEFI Application
Command line input: build-a x64-p DUETPKG/DUETPKGX64.DSC
Compile your own written application:
[note] Each time you open a new CMD window, run Edksetup.bat--nt32 and then:
Method 1:build-a X64-m Mdemodulepkg\application\helloworld\helloworld.inf
Method 2: Switch to the mdemodulepkg\application\helloworld\ directory and execute build-a X64
Method 3: Add Helloworld.inf to DUETPKGX64.DSC, execute build-a X64
Copy the generated Hellowrodl.efi file to a USB flash drive or HDD with a uefi shell system and run the Hellowrold.efi.
This article is less content, contact UEFI time is not long, the details are not clear, only describe the process, the reasons are not described, further research can refer to "EDK II Build Specification".
How to build UDK2015?