【发布时间】:2015-10-09 11:30:24
【问题描述】:
我尝试使用gnu-efi 编译 uefi 代码。但是我不明白如何编译我的 uefi 应用程序代码。
我得到gnu-efi 3.0.2,解压缩并输入make && make install。我写 hello world 代码:
#include <efi.h>
#include <efilib.h>
EFI_STATUS efi_main (EFI_HANDLE ImageHandle, EFI_SYSTEM_TABLE *SystemTable) {
InitializeLib(ImageHandle, SystemTable);
Print(L"Hello, world!\n");
return EFI_SUCCESS;
}
我的操作系统是 Ubuntu 15.04。
【问题讨论】: