OVMF compile
1 | git clone https://github.com/tianocore/edk2.git |
vim Conf/target.txt
1 | ACTIVE_PLATFORM = OvmfPkg/OvmfPkgX64.dsc |
1 | build -DFD_SIZE_2MB -DDEBUG_ON_SERIAL_PORT=TRUE |
The binary is located at Build/OvmfX64/DEBUG_GCC5/FV/OVMF.fd after a successful build.
The source edksetup.sh
step is needed for compilation every time a shell is created.
Actually, In qemu project:
1 | kvm@kvm:~/qemu$ git submodule | grep edk2 |
OVMF project is the submodule of QEMU.