The General Procedure Of Setting Up EDKII Development Environment:搭建EDKII开发环境的通用流程[2.1]

The General Procedure Of Setting Up EDKII Development Environment:搭建EDKII开发环境的通用流程[2.1]

2015-07   北京海淀区  张俊浩

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

->2.1 The General Procedure Of Setting Up EDKII Development Environment(搭建EDKII开发环境的通用流程)

->2.1.1 Get the EDKII Source EDKII源码获取(下载)。

->2.1.2 Install some third-party tools to build EDKII.相应开发工具链的下载。

->2.2 Setting up a EDK II build environment on Windows and Linux(搭建Windows和Linux开发环境)

->2.3 Tools:Installing and using the Required Tools for downloading and Building EDKII.

->2.3.1 Download and Install TortoiseSVN to obtain the EDK II(下载/安装/使用TortoiseSVN工具)

EDKII(EFI Developer Kit II)是遵循UEFI标准和PI(Platform Initialization)标准的扩平台固件开发环境。UEFI的标准是完全取代BIOS,因而它要完全支持所有类型的CPU,并让所有的硬件厂商接收这种变化。来自不同的厂商的开发者使用不同的开发环境开发自己的产品。为了让这些不同的开发者愉快地接收EDKII来开发自己平台上的UEFI固件或者应用,EDKII对每种平台都提供了相应的开发工具。EDKII支持在多种操作系统下的开发,例如Windows、Linux、UNIX、Darwin等,并支持跨平台编译,例如在X86平台Windows开发环境下可以编译出ARM平台上的UEFI应用程序。[参考《UEFI原理与编程》第二章UEFI开发环境搭建]

不论是搭建EDKII还是其他任何源码项目的开发环境(比如Linux源码、Uboot源码)开发环境的搭建都有一般、类似、相同的框架和流程,都具备其基本的开发环境要素:CPU处理器,源码,开发工具链。之所以工程项目开发环境搭建有一般、通用的框架流程,究其原因、本质:我们是通过一定开发工具链编辑、编译工程源码完成对某类型处理器驱动开发。

因为EDKII项目已经支持大多数类型的CPU,所以我们在选定硬件处理器平台后,只需要在源码开发的编译阶段考虑平台相关即可,即通过配置源码利用相应编译器将工程源码编译成硬件平台下相应处理器架构的机器指令。所以EDKII开发环境的搭建的主要任务是:Get the EDKII Source EDKII(EDKII源码获取、下载)、Get and Install some third-party tools to build EDKII(相应开发工具链的下载、安装)。

2.1.1 Get the EDKII Source EDKII源码获取(下载)

TianCore官网上给出了EDKII源码路径:(EDKII:http://www.tianocore.org/edk2/)

Source repositories:

git{

github(https://github.com/tianocore/edk2),

bitbucket(https://bitbucket.org/tianocore/edk2), sourceforge(https://sourceforge.net/p/tianocore/edk2), more info()

},

svn { sourceforge (https://svn.code.sf.net/p/edk2/code/trunk/edk2/)}

一般是通过git或subversion项目源码版本管理工具获取相应服务器上的EDKII源码。

2.1.2 Get and Install some third-party tools to build EDKII.相应开发工具链的下载

我们需要相应的开发工具链对EDKII源码进行编辑、编译、链接成相应硬件平台的机器指令。

根据TianoCore官网http://www.tianocore.org->Getting Started for Developers -> Getting Started with EDK II->Tools ->follow these instructions ->Install some external tools->Third Party Tools:要求我们需要第三方工具包括:c预处理器、c编译器、静态链接器、动态连接器、汇编器、汇编连接器、ACPI汇编器。(3rdParty Tools must include: a C pre-processor,
 C compiler,  static linker,  dynamic linker,  and an assembler and assembly linker.For creating ACPI tables required by platforms,  an ACPI assembler is also required.)

Windows环境下开发工具是采用集成的开发环境Visual Studio编译器来编译汇编和C和汇编源文件和Microsoft ACPI Source Language Assembler来编译“高级配置与电源接口”(ACPI,Advanced Configuration and Power Interface)源文件,一般是DOS命令行模式下编译开发(These instructions will be written as a series of commands executed from
 a command terminal.)。

Linux环境下开发工具链是Gcc编译器、make、nasm(80x86的汇编器)、build-essential(提供编译程序必须软件包的列表信息,安装了该软件包编译c/c++所需要的软件包也都会被安装)、uuid-dev
( universally unique id library - headers  and static libraries,  通用唯一标识库--头和静态库)、iasl(编译“高级配置与电源接口”(ACPI,Advanced
 Configuration  and  Power  Interface)源文件)。

版权声明:本文为博主原创文章,未经博主允许不得转载。

时间: 2024-07-31 14:25:03

The General Procedure Of Setting Up EDKII Development Environment:搭建EDKII开发环境的通用流程[2.1]的相关文章

[Django] Setting up Django Development Environment in Ubuntu 14.04

1. Python Of course you will need Python. Still Python 2.7 is preferred, however if you would like to create new projects with Python 3, it is also fine to do. Newest Python could be downloaded from https://www.python.org/downloads/ 2. pip It is a ve

Setting up a EDK II build environment on Windows and Linux:搭建Windows和Linux开发环境[2.2]

Setting up a EDK II build environment on Windows and Linux:搭建Windows和Linux开发环境[2.2] 2015-07   北京海淀区  张俊浩 2. Setting Up EDKII Development Environment(EDKII开发环境的搭建) ->2.1The General Procedure Of Setting Up EDKII Development Environment(搭建EDKII项目的通用流程)

Storm(1) - Setting Up Development Environment

Setting up your development environment 1. download j2se 6 SDK from http://www.oracle.com/technetwork/java/javase/downloads/index.html chmod 775 jdk-6u35-linux-64.binyes | jdk-6u35-linux-64.binmv jdk1.6.0_35 /optln -s /opt/jdk1.6.0_35/bin/java /usr/b

Programming in Go (Golang) – Setting up a Mac OS X Development Environment

http://www.distilnetworks.com/setup-go-golang-ide-for-mac-os-x/#.V1Byrf50yM8 Programming in Go (Golang) – Setting up a Mac OS X Development Environment Published on February 4, 2015 At Distil, we have recently started to use Go (Golang) to expand the

[Blackberry]How To Setup a BlackBerry 10 Development Environment to Build Cascades Apps and Prevent IP DHCP for individual BB10 simulator setup

This is a step-by-step instructional guide on how to setup a BlackBerry 10 (BB10) development environment. This article includes instructions for downloading all the Cascades tools, installing them, and setting them up. You will learn how to get the

Android Development Environment ADT-BUNDLE android-studio SDK ADT Download

Android ALL VERSIONS DOWNLOAD (64GB ZIPPED) LINK : http://pan.baidu.com/s/1c2v4mXE password: h2mc -- SIZES: -- schema : Android Studio : http://tools.android-studio.org/; Android 开发环境介绍 : 目前 Android 有两种开发环境, 一种是传统的 Eclipse + ADT, 一种就是目前最新并且得到 Google

UEFI&EDKII Introduction:UEFI&EDKII概述[1]

UEFI&EDKII Introduction:UEFI&EDKII概述[1] 2015-07   北京海淀区   张俊浩 本篇博文主要介绍UEFI规范.EDKII项目涉及的相关概念:EFI, UEFI, Tianocore, EDK, EDKII,  Package, Library Class/Library Instance, PCD, Module, UEFI Application and UEFI Driver.概念性术语较多,大多参考<EDKII_UserManual_

Setup and configure an open source Fortran development environment on Windows

We must have already been familiar with proprietary Fortran programming environments, for example, Compaq Visual Fortran IDE (which is actually a combination of Microsoft’s Visual Studio 6 IDE and Compaq’s Fortran compiler along with commercial numer

Establish the LAMP (Linux+Apache+MySQL+PHP) Development Environment on Ubuntu 14.04 Operating System

######################################################## Step One: Update the software package in your operation system. THE COMMAND YOU CAN TYPE INTO YOUR CONSOLE #apt-get update #apt-get dist-upgrade -y --force-yes #################################