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 EDK II build environment on Windows and Linux(搭建Windows和Linux開發環境)
->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...”,彈出如下界面。
URL of repository:https://svn.code.sf.net/p/edk2/code/trunk/edk2
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源碼目錄如下圖。