Tools:downloading and Building EDK II工具篇:安装/使用EDKII源码获取/编译工具[2.3]

ToolsInstalling and using the Required Tools for downloading and Building EDK II工具篇:安装/使用EDKII源码获取/编译工具[2.3]

2015-0  北京海淀区  张俊浩 

2. Setting Up EDKII Development EnvironmentEDKII开发环境的搭建)

      ->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(搭建WindowsLinux开发环境)

            ->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 ToolsInstalling 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来管控项目源码版本,通过SVNsubversion)下载上传源码,所以我们想获取源码,首先需要下载、安装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(TortoiseSVNSubversion版本控制系统的一个免费开源客户端,可以超越时间的管理文件和目录),点击TortoiseSVNURL链接,进入TortoiseSVN下载页面(http://tortoisesvn.net/downloads):因为我的电脑是win764位系统,所以选择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(图形命令方式)

签出(checkoutEDKII源码可以使用TortoiseSVN图形命令,可以在D盘新建源码目录edk2,选择edk2源码目录点击鼠标右键,选择“SVN Checkout...”,弹出如下界面。

URL of repositoryhttps://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
[注:cocheckout^表示命令行未结束需要另起一行 scn co {数据源路径} {数据目标路径}]

 


源码的下载速度受网络状况影响,大约10min。最终EDKII源码目录如下图。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章