Skip to content

Convert .c to .efi in seconds and fire it up in QEMU for testing purpose!πŸ”₯

Notifications You must be signed in to change notification settings

Cdude1909/C2EFI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 

Repository files navigation

C2EFI Script πŸ₯‚

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.

Requirements

  • GCC

    • Install using sudo apt install gcc in Debian/Ubuntu
  • GNU-EFI Library:

    • Install using your package manager (e.g., sudo apt install gnu-efi on Debian/Ubuntu).
  • QEMU (optional):

    • For testing the application in a virtual environment. QEMU Install

Steps

  1. Place your UEFI source file (e.g., main.c) in the working directory.

  2. Run the script using:

    sudo bash ./run.sh
    
  3. 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
  4. Finally, you will be prompted to live-run (test) .efi on QEMU

Working of Script

working-ezgif com-optimize

About

Convert .c to .efi in seconds and fire it up in QEMU for testing purpose!πŸ”₯

Topics

Resources

Stars

Watchers

Forks

Languages