EDK2: Difference between revisions
[unchecked revision] | [unchecked revision] |
Content deleted Content added
Change demo to be simpler |
→Building an EDK2 UEFI application: fix code error |
||
Line 148:
gBS->AllocatePool(EfiLoaderData, 20, (VOID**)&str);
// Copy over a string
CHAR16* str2
gBS->CopyMem((VOID*)str, (VOID*)str2, 20);
Print(str);
Line 167:
</source>
After, in the folder Build/MdeModule/DEBUG_GCC5/YOUR_ARCH, there should be a file named MyEfiApp.efi.
===Building OVMF and ArmVirt===
Building OVMF and ArmVirtPkg is easy, after setting up EDK2, run the following for OVMF:
|