Getting Started with EDK II - Wayne777Chiu/Chinese_Practice_about_TianoCore GitHub Wiki
(2019/03/08)
本頁面顯示從GitHub下載EDK II與透過不同的OS或編譯器環境來編譯專案的步驟。
幾種建置環境有支援和被提及。 假如說明介紹對你的系統組態不夠精準,你可能需要稍稍調整說明來符合你的系統。
- Linux:在原生GCC使用EDK II(建議用目前版本的Linux)
- Microsoft Windows: Windows systems (Win7/8/8.1/10)
- Mac OS X: Xcode
- UNIX: Unix-like systems (For non-Linux UNIX, 較老的 Linux distros, 或使用 Cygwin)
- Nasm
- ASL Compiler
- 安裝 Python 3.7 or later (https://www.python.org/) 來從源碼運行 python 工具
- Python 2.7.10 or later 仍可使用 PYTHON_HOME 變數
一旦你有了基本建置環境可運行,你就能夠建置一個專案在 RELEASE 或 DEBUG 模式。
GitHub (https://help.github.com/index.html) 提供對註冊和GitHub支援的基本功能的單一步驟操作說明。
- 組建GitHub - Linux/Windows/Mac (https://help.github.com/articles/set-up-git)
- 下載並安裝Git GUI 介面: Git GUI 終端(Clients) (https://git-scm.com/download/gui/win) | TortoiseGit (https://tortoisegit.org/)
- EDK II 專題 repository 位於 https://github.com/tianocore/edk2 。
- 前置建置 Windows 工具位於 https://github.com/tianocore/edk2-BaseTools-win32 。
- EDKII 平台 位於 https://github.com/tianocore/edk2-platforms 。
- 未在公開源碼允許權限發佈的內容位於 https://github.com/tianocore/edk2-non-osi 。
在建立起你的建置環境後,參考 EDK II 開發流程 做出貢獻給 EDK II 專題。
假如你有問題關於源碼程式或運行出現障礙讓事情發揮作用,請加入 edk2-devel 郵件列表去詢問你的 EDK II 相關問題在列表上
在編寫一個簡單 UEFI EDK II 應用程式的資訊,參考: 正開始編寫簡單應用程式
檢視關於 .DSC,.DEC,和 .INF,檔案的基本組建,參考: 建置組態描述檔
This page shows the steps for downloading EDK II from GitHub and compiling projects under various OS/compiler environments.
Several build environments are supported and documented. If instructions are not available for your exact system configuration, you may still be able to tweak the instructions to work on your system.
- Linux: Using EDK II with Native GCC (recommended for current versions of Linux)
- Microsoft Windows: Windows systems (Win7/8/8.1/10)
- Mac OS X: Xcode
- UNIX: Unix-like systems (For non-Linux UNIX, older Linux distros, or when using Cygwin)
- Nasm
- ASL Compiler
- Install Python 3.7 or later (https://www.python.org/) to run python tool from source
- Python 2.7.10 or later can still be used with PYTHON_HOME
Once you have a basic build environment running, you can build a project in RELEASE or DEBUG mode.
GitHub (https://help.github.com/index.html) provides step-by-step instructions for user registration and basic features supported by GitHub
- Setup GitHub for Linux/Windows/MAC (https://help.github.com/articles/set-up-git)
- Download and install a git GUI interface: git GUI Clients (https://git-scm.com/download/gui/win) | TortoiseGit (https://tortoisegit.org/)
- The EDK II project repository is available at https://github.com/tianocore/edk2.
- Prebuilt Windows tools are available at https://github.com/tianocore/edk2-BaseTools-win32.
- EDK II Platforms are available at https://github.com/tianocore/edk2-platforms.
- Content that is not released under an accepted open source license can be found at https://github.com/tianocore/edk2-non-osi.
After setting up your build environment see EDK II Development Process for making contributions to the EDK II Project.
If you have questions about the code or run into obstacles getting things to work, please join the edk2-devel email list and ask your EDK II related questions on the list.
For info on writing a simple UEFI EDK II Application, see: Getting Started Writing Simple Application
To review the basic setup of .DSC, .DEC, and .INF files, see: Build Description Files