網頁

2016年2月29日 星期一

Build EDK2 on Window 7 and 8


  1. Platform: Windows 7 or 8.
    Compiler: Visual Studio C++ 2008 Express. https://go.microsoft.com/?linkid=7729279
  2. Download source frrom EDK2 web site. https://github.com/tianocore/edk2
  3. Download EDK2 Basetools source. https://github.com/tianocore/edk2-BaseTools-win32
     
  4. Unzip above 2 compress file.
  5. Open Windows Command Line to build the EDK2.
  6. Change to folder D:\edk2-master  (The EDK2 source location directory).
  7. Windows Command Line:

    D:\edk2-master > set EDK_TOOLS_BIN=D:\edk2-BaseTools-win32-masterD:\edk2-master > edksetup.bat
  8. After the "edksetup.bat" command, it will produce some files in Conf directory.

    build_rule.txt
    target.txt
    tools_def.txt
  9. Modify the file "target.txt"
    TOOL_CHAIN_TAG = VS2008x86
  10. Windows Command Line: (Change folder to D:\edk2-master > )
    D:\edk2-master > edksetup.bat --nt32
    D:\edk2-master > build

  11. [Note 1]
    1. 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)
    2. Re-run step 7 to step 10 at the above section.
    [Note 2]
        Windows Command Line:
        C:\ > set 
        (see all system variable setting)
        checking "VSCoMMONTOOLS"

沒有留言:

張貼留言