Ubuntu build EDK2

https://wiki.ubuntu.com/UEFI/EDK2

http://blog.csdn.net/huangkangying/article/details/8718892

https://github.com/tianocore/tianocore.github.io/wiki/Common-instructions

https://github.com/tianocore/tianocore.github.io/wiki/Edk2-buildtools

https://github.com/tianocore/tianocore.github.io/wiki/Getting-Started-with-EDK-II

http://www.tianocore.org/

For the purposes of this set of instructions, we will be using the following paths.

Edk2 source tree:$HOME/src/edk2
Native GCC 4.x compiler installation:/usr/bin/gcc
Intel ASL Compiler installation:/usr/bin/iasl

 

Install required software from apt

Several Ubuntu packages will be needed to set up the build environment for EDK II. The following command will install all required packages:

bash$ sudo apt-get install build-essential uuid-dev iasl git gcc-5 nasm
build-essential - Informational list of build-essential packages
uuid-dev -  Universally Unique ID library (headers and static libraries)
iasl - Intel ASL compiler/decompiler (also provided by acpica-tools)
git - support for git revision control system
gcc-5 - GNU C compiler (v5.4.0 as of Ubuntu 16.04 LTS)
nasm - General-purpose x86 assembler

Continue with common instructions

The remaining instructions are common for most UNIX-like systems.

 

Compile build tools

bash$ cd ~/src/edk2
bash$ make -C BaseTools
bash$ . edksetup.sh

转载于:https://www.cnblogs.com/boowii/p/6510882.html

### 回答1: Ubuntubuild-essential是一种开发工具包,包含了一系列常用的编译工具和库文件,用于在Ubuntu系统中进行软件开发。如果您需要在没有网络连接的情况下进行安装,可以采取以下步骤: 1. 在有网络连接的Ubuntu系统上,下载并保存build-essential的安装文件。可以通过打开终端,运行命令`sudo apt-get install -d build-essential`对build-essential进行下载。这将下载相关的安装包到本地缓存。 2. 在下载完毕后,您可以将下载的安装包文件移动到没有网络连接的目标Ubuntu系统上。可以使用USB驱动器或其他可移动存储设备来完成。 3. 将安装包文件移动到目标系统后,打开终端并导航到安装包所在的目录。 4. 运行命令`sudo dpkg -i <package-name>.deb`来安装build-essential的安装包。注意,`<package-name>`应该替换为实际的安装包文件名。 5. 安装过程中可能会出现依赖关系问题,此时您需要运行命令`sudo apt-get install -f`来解决缺少的依赖关系。 6. 安装完成后,您可以验证build-essential是否成功安装。可以在终端中运行命令`gcc -v`来检查GCC是否可用,以及运行命令`make -v`来检查make是否可用。如果这些命令都能正常显示版本信息,则说明build-essential已经成功安装。 需要注意的是,离线安装无法自动处理依赖关系,因此您需要手动解决可能出现的依赖问题。一种方法是提前下载所有依赖的安装包并一起移动到目标系统进行安装,另一种方法是在目标系统上逐个解决缺少的依赖关系。 希望以上步骤对您有所帮助!如果有任何疑问,请随时提问。 ### 回答2: Ubuntubuild-essential是一个软件包,提供了构建源代码的必要工具和库文件。当我们没有网络连接时,我们可以通过以下步骤进行离线安装。 首先,我们需要一个包含build-essential软件包及其依赖项的离线存储介质,例如USB闪存驱动器或DVD。我们可以从拥有互联网连接的计算机上下载这个软件包及其依赖项,并将它们传输到离线计算机上。 在离线计算机上,我们需要将离线存储介质插入计算机。打开终端,并使用cd命令定位到存储介质所在目录。 接下来,我们需要解包和安装build-essential软件包及其依赖项。运行以下命令: sudo dpkg -i build-essential*.deb sudo apt-get install -f 第一条命令将安装build-essential软件包及其依赖项。第二条命令将检查并安装任何缺少的依赖项。 完成安装后,我们可以验证build-essential是否成功安装。运行以下命令: gcc -v 如果能够正确显示gcc版本信息,那么build-essential已经成功安装了。 总之,通过将build-essential软件包及其依赖项从互联网连接的计算机传输到离线计算机,并使用dpkg命令进行解包和安装,我们可以在离线环境中安装build-essential。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值