编译 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
- https://bugzilla.tianocore.org/show_bug.cgi?id=2850
- https://github.com/makaleks/edk2-tools/tree/master/compilation_database_patch
- https://github.com/tianocore/edk2-basetools/pull/88 : 官方支持了
- https://github.com/intel/Edk2Code/wiki/Index-source-code
经典的项目
想要具体构建什么可以通过 ACTIVE_PLATFORM 来控制:
- 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
- MdeModulePkg.dsc
ACTIVE_PLATFORM = MdeModulePkg/MdeModulePkg.dsc
build -p OvmfPkg/OvmfPkgX64.dsc -a X64 -t GCC
本站所有文章转发 CSDN 将按侵权追究法律责任,其它情况随意。