Skip to the content.

编译 edk2

参考

HelloWorld

执行完成之后,可以看到这个: Build/EmulatorX64/DEBUG_GCC5/X64/HelloWorld.efi

compile_commands.json

build -Y COMPILE_INFO 可以有 compile_commands

Build/OvmfX64/DEBUG_GCC5/CompileInfo/compile_commands.json

build -Y COMPILE_INFO -y BuildReport.log

经典的项目

想要具体构建什么可以通过 ACTIVE_PLATFORM 来控制:

  1. EmulatorPkg/EmulatorPkg.dsc
ACTIVE_PLATFORM       = EmulatorPkg/EmulatorPkg.dsc

参考 EmulatorPkg/Readme.md ,居然可以直接在 unix 环境中:

build -p EmulatorPkg/EmulatorPkg.dsc -a X64 -t GCC5

cd Build/EmulatorX64/DEBUG_GCC5/X64/ && ./Host
  1. MdeModulePkg.dsc
ACTIVE_PLATFORM       = MdeModulePkg/MdeModulePkg.dsc

build -p OvmfPkg/OvmfPkgX64.dsc -a X64 -t GCC

本站所有文章转发 CSDN 将按侵权追究法律责任,其它情况随意。