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版本号控制系统的一个免费开源client,能够超越时间的管理文件和文件夹)。点击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 FilesTortoiseSVNin生成一个可运行文件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源代码文件夹例如以下图。

原文地址:https://www.cnblogs.com/zhchoutai/p/7372980.html