2 Star 0 Fork 0

mirrors_pbatard/uefi-simple

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

UEFI:SIMPLE - EFI development made easy

A simple UEFI "Hello World!" style application that can:

  • be compiled on Windows or Linux, using Visual Studio 2022, MinGW or gcc.
  • be compiled for x86_32, x86_64, ARM, ARM64 or RISCV64 targets
  • be tested on the fly, through a QEMU + OVMF or QEMU_EFI virtual machine.

Prerequisites

  • Visual Studio 2022 or gcc/make
  • QEMU v2.7 or later (NB: You can find QEMU Windows binaries here)
  • git
  • wget, unzip, if not using Visual Studio

Sub-Module initialization

For convenience, the project relies on the gnu-efi library, so you need to initialize the git submodule either through git commandline with:

git submodule init
git submodule update

Or, if using a UI client (such as TortoiseGit) by selecting Submodule Update in the context menu.

Compilation and testing

If using Visual Studio, just press F5 to have the application compiled and launched in the QEMU emulator.

If using MinGW or Linux, issue the following from a command prompt:

make

If needed you can also add ARCH=<arch> and CROSS_COMPILE=<tuple>, e.g.:

  • make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf-
  • make ARCH=aa64 CROSS_COMPILE=aarch64-linux-gnu-
  • make ARCH=riscv64 CROSS_COMPILE=riscv64-linux-gnu-

where <arch> can be x64, ia32, arm, aa64 or riscv64.

You can also add qemu as your make target to run the application under QEMU, in which case a relevant UEFI firmware (OVMF for x86 or QEMU_EFI for Arm) will be automatically downloaded to run your application against it.

Visual Studio 2022 and ARM/ARM64 support

Please be mindful that, to enable ARM or ARM64 compilation support in Visual Studio 2022, you MUST go to the Individual components screen in the setup application and select the ARM/ARM64 build tools there, as they do NOT appear in the default Workloads screen:

VS2019 Individual Components

空文件

简介

暂无描述 展开 收起
Makefile 等 3 种语言
取消

发行版

暂无发行版

贡献者

全部

近期动态

不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors_pbatard/uefi-simple.git
git@gitee.com:mirrors_pbatard/uefi-simple.git
mirrors_pbatard
uefi-simple
uefi-simple
master

搜索帮助