A script designed to automate the process of compiling, testing, and creating bootable UEFI applications using the GNU-EFI library. It simplifies the workflow by integrating dynamic input, automated compilation, and optional testing in QEMU.
-
GCC
- Install using
sudo apt install gcc
in Debian/Ubuntu
- Install using
-
GNU-EFI Library:
- Install using your package manager (e.g.,
sudo apt install gnu-efi
on Debian/Ubuntu).
- Install using your package manager (e.g.,
-
QEMU (optional):
- For testing the application in a virtual environment. QEMU Install
-
Place your UEFI source file (e.g.,
main.c
) in the working directory. -
Run the script using:
sudo bash ./run.sh
-
Provide the following inputs when prompted:
- Path to the source
.c
file. - Paths to GNU-EFI libraries and headers.
- Note: It is always recommended to use
/usr/include/efi
as Header GNU-EFI wiki
- Path to the source
-
Finally, you will be prompted to live-run (test) .efi on QEMU