A sample UEFI application written in Rust using the efi
crate.
To build follow the below steps:
- Unless already installed, install
cargo-xbuild
by runningcargo install cargo-xbuild
. - Execute the build by running
cargo xbuild --target x86_64-unknown-uefi
- When the build complete the resulting EFI application
efi_app.efi
will be found intarget\x86_64-unknown-uefi\debug\
. Load this up in qemu and run it via EFI shell. You can find an OVMF binary for your use in the directorytools
of this repo.
Build steps have been tested only on Windows. Building on non-Windows OS's might work. Currently only x64 architecture is supported.