[3mdeb blog]

Thoughts dereferenced from scratchpad noise

Build and run OVMF under Qemu

| Comments

What the OVMF is ?

OVMF (Open Virtual Machine Firmware) is a firmware actively developed as a EDK2(EFI Developer Kit) package. It is a packed that aims to support firmware for virtual machines like Qemu.

Simplified build process

First of all lets get latest version of the code. For some time EFI and Framework Open Source Community share edk2 code also on github mirror.

1
git clone https://github.com/tianocore/edk2.git

Building process was simplified by OvmfPkg contributors. But I found that toolchain for latest gcc compilers is not ready in main repository. So I suggest to remove BaseTools directory and clone up to date git repository in this place:

1
2
3
4
cd edk2
rm -rf BaseTools
git clone https://github.com/tianocore/buildtools-BaseTools.git BaseTools
. edksetup.sh

So to build firmware we need only one command:

“`

`` You may need some additional packages likeuuid-dev,iaslorg++`.

Comments