From f0cf2d318ff0a4b1f43508c6a72bfe231587ac64 Mon Sep 17 00:00:00 2001 From: shadlyd15 Date: Sat, 7 May 2022 22:49:33 +0200 Subject: [PATCH] compile_guide.md added --- compile_guide.md | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/compile_guide.md b/compile_guide.md index 6e6820d..60b6510 100644 --- a/compile_guide.md +++ b/compile_guide.md @@ -26,26 +26,26 @@ Go to gnu-efi source folder Use this makefile to easily compile and run gnu-efi application. It will recursively compile all c files in the sub-directories. Change the following macros to locate the libraries and headers installed on the previous step. -```makefile -IMAGE = uefi_app -TARGET = main.efi + ```makefile + IMAGE = uefi_app + TARGET = main.efi -INCDIR = /usr/local/include -LIBDIR = /usr/local/lib -EFILIB = /usr/local/lib -``` + INCDIR = /usr/local/include + LIBDIR = /usr/local/lib + EFILIB = /usr/local/lib + ``` ## Run on qemu : ### Locate OVMF in Makefile: To run the compiled application in qemu we need OVMF for UEFI emulation. OVMF is a port of Intel's tianocore firmware to the qemu virtual machine. Download it from here. -```makefile -OVMF_DIR = ../OVMF -``` + ```makefile + OVMF_DIR = ../OVMF + ``` Change the OVMF directory in the makefile. ### Create Image : -```bash - make img -``` + ```bash + make img + ``` It will do the following tasks : ```bash # Create a new image file that will contain the GNU-EFI application.