Tools:downloading and Building EDK II工具篇:安裝/使用EDKII原始碼獲取/編譯工具[2.3]
Tools:Installing and using the Required Tools for downloading and Building EDK II工具篇:安裝/使用EDKII原始碼獲取/編譯工具[2.3]
2015-07 北京海淀區 張俊浩
2. Setting Up EDKII Development Environment(EDKII開發環境的搭建)
->2.1 The General Procedure Of Setting Up EDKII Development Environment(搭建EDKII專案的通用流程)
->2.2 Setting up a
->2.2.1 Setting up a EDK II build environment on Windows
->2.2.1.1 Get the EDKII Source EDKII原始碼獲取(下載)。
->2.2.1.2 Install some third-party tools to build EDKII.相應開發工具鏈的下載。
->2.2.2 Setting up a EDK II build environment on Linux
->2.2.2.1 Get the EDKII Source EDKII原始碼獲取(下載)。
->2.2.2.2 Install some third-party tools to build EDKII.相應開發工具鏈的下載。
->2.3 Tools:Installing and using the Required Tools for downloading and Building EDK II.
->2.3.1 Download and Install TortoiseSVN to obtain the EDK II(下載/安裝/使用TortoiseSVN工具)
->2.3.2 Checkout the edk2 source tree from subversion
->2.3.2.1 GUI instructions(圖形命令方式)
->2.3.2.2 Command line Instructions:(DOS終端命令列模式)
2.3.1 Download and Install TortoiseSVN to obtain the EDK II
Windows平臺下我們一般使用subversion來管控專案原始碼版本,通過SVN(subversion)下載上傳原始碼,所以我們想獲取原始碼,首先需要下載、安裝SVN軟體。
http://www.tianocore.org->Getting Started for Developers -> Getting Started with EDK II->Tools ->follow these instructions ->Install some external tools->Requirements: The one of the following is required to be able to obtain the EDK II.(需要安裝下列下面工具之一用來獲EDKII取原始碼)。
我們這裡只下載TortoiseSVN(TortoiseSVN是Subversion版本控制系統的一個免費開源客戶端,可以超越時間的管理檔案和目錄),點選TortoiseSVN的URL連結,進入TortoiseSVN下載頁面(http://tortoisesvn.net/downloads):因為我的電腦是win7的64位系統,所以選擇TortoiseSVN 1.8.11-64-bit。跳轉到TortoiseSVN 1.8.11-64-bit下載頁面直接點選direct link直接下載即可。
下載完成後,點選TortoiseSVN-*.msi進行安裝,點選next,選擇I accept點選下一步。
在選擇TortoiseSVN特徵的時候,注意將“command line client tools”選擇為“will be installed on local hard driver”。點選下一步完成安裝。
在選擇TortoiseSVN特徵的時候,將“command line client tools”選擇為“will be installed on local hard driver”,這樣會在TortoiseSVN安裝路目錄下D:\Program Files\TortoiseSVN\bin生成一個可執行檔案svn.exe,這樣就可以在DOS終端使用SVN的命令列模式了。不至於在終端使用SVN命令時報錯。
2.3.2 Checkout the edk2 source tree from subversion
2.3.2.1 GUI instructions(圖形命令方式)
簽出(checkout)EDKII原始碼可以使用TortoiseSVN圖形命令,可以在D盤新建原始碼目錄edk2,選擇edk2原始碼目錄點選滑鼠右鍵,選擇“SVN Checkout...”,彈出如下介面。
Checkout directory: D:\edk2
點選“OK”
2.3.2.2 Command line Instructions:(DOS終端命令列模式)
If you use the command line version of subversion, then you can easily checkout the edk2 to the D:\edk2 directory with the following command:
C:\> svn co ^
https://svn.code.sf.net/p/edk2/code/trunk/edk2 ^
D:\edk2 ^
--username guest
[注:co:checkout,^表示命令列未結束需要另起一行 scn co {資料來源路徑} {資料目標路徑}]
原始碼的下載速度受網路狀況影響,大約10min。最終EDKII原始碼目錄如下圖。