1.下載軟體
- EDK2 edk2-stable-202011 or Newest
- VS2019 C++
- python 3.8
- NASM http://www.nasm.us/
- ASL https://acpica.org/downloads/binary-tools
- BaseTools/Source/C/BrotliCompress/brotli
- MdeModulePkg/Library/BrotliCustomDecompressLib/brotli
- CryptoPkg/Library/OpensslLib/openssl
2.建立資料夾(C:\Workspace)
- 將edk2-stable-202011.zip內容解壓到C:\Workspace\
- 解壓brotli至BaseTools/Source/C/BrotliCompress/brotli
- 解壓brotli至MdeModulePkg/Library/BrotliCustomDecompressLib/brotli
- 解壓openssl至CryptoPkg/Library/OpensslLib/openssl
3.安裝VS2019
4.安裝Python3.8
5.解壓NASM及IASL到C:\Workspace\NASM\及C:\Workspace\IASL\注意:NASM及IASL資料夾請自行建立
6.開始 > 程式集 > VS2019 >執行Developer Command Prompt for VS 2019 > 進入Workspace資料夾
8.環境設定- set NASM_PREFIX=C:\Workspace\NASM\- set IASL_PREFIX=C:\Workspace\IASL\- set WORKSPACE=C:\Workspace\- set PACKAGES_PATH=C:\Workspace\
9.執行edksetup.bat10.進入C:\Workspace\Confg\,修改target.txt- ACTIVE_PLATFORM = EmulatorPkg/EmulatorPkg.dsc- TARGET = RELEASE- TARGET_ARCH = X64- TOOL_CHAIN_TAG = VS201911.執行edksetup.bat rebuild12.Build,等待編譯完成。
3.安裝VS2019
留言
張貼留言