- Platform: Windows 7 or 8.
Compiler: Visual Studio C++ 2008 Express. https://go.microsoft.com/?linkid=7729279 - Download source frrom EDK2 web site. https://github.com/tianocore/edk2
- Download EDK2 Basetools source. https://github.com/tianocore/edk2-BaseTools-win32
- Unzip above 2 compress file.
- Open Windows Command Line to build the EDK2.
- Change to folder D:\edk2-master (The EDK2 source location directory).
- Windows Command Line:
D:\edk2-master > set EDK_TOOLS_BIN=D:\edk2-BaseTools-win32-masterD:\edk2-master > edksetup.bat - After the "edksetup.bat" command, it will produce some files in Conf directory.
build_rule.txt
target.txt
tools_def.txt - Modify the file "target.txt"
TOOL_CHAIN_TAG = VS2008x86 - Windows Command Line: (Change folder to D:\edk2-master > )
D:\edk2-master > edksetup.bat --nt32
D:\edk2-master > build - Error: can not find "windows.h".
Go to the directory where the VS2008 was installed.
C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\ToolsC:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\Tools
Modify "vsvars32.bat" in administrator mode at Line 35.
set WindowsSdkDir=C:\Program Files\Microsoft SDKs\Windows\v6.0A\(Orginal WindowsSdkDir can not find "windows.h", no Windows SDKs installed) - Re-run step 7 to step 10 at the above section.
[Note 1]
[Note 2]
Windows Command Line:
C:\ > set
(see all system variable setting)
checking "VSCoMMONTOOLS"
沒有留言:
張貼留言