mirror of
https://github.com/shadlyd15/NesUEFI.git
synced 2024-09-15 15:03:14 +00:00
compile_guide.md added
This commit is contained in:
parent
5caa074433
commit
ed5f7a8fde
@ -28,9 +28,9 @@ Go to gnu-efi source folder
|
|||||||
Change the following macros in makefile to locate GNU-EFI **libraries** and **headers** installed on the previous step.
|
Change the following macros in makefile to locate GNU-EFI **libraries** and **headers** installed on the previous step.
|
||||||
|
|
||||||
```makefile
|
```makefile
|
||||||
INCDIR = /usr/local/include
|
INCDIR = /usr/local/include
|
||||||
LIBDIR = /usr/local/lib
|
LIBDIR = /usr/local/lib
|
||||||
EFILIB = /usr/local/lib
|
EFILIB = /usr/local/lib
|
||||||
```
|
```
|
||||||
|
|
||||||
# NesUEFI on qemu :
|
# NesUEFI on qemu :
|
||||||
@ -38,7 +38,7 @@ Change the following macros in makefile to locate GNU-EFI **libraries** and **he
|
|||||||
### Locate OVMF in Makefile:
|
### 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.
|
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.
|
||||||
```makefile
|
```makefile
|
||||||
OVMF_DIR = ../OVMF
|
OVMF_DIR = ../OVMF
|
||||||
```
|
```
|
||||||
Change **OVMF_DIR** directory in the makefile.
|
Change **OVMF_DIR** directory in the makefile.
|
||||||
|
|
||||||
|
@ -27,18 +27,18 @@ Use this makefile to easily compile and run gnu-efi application. It will recursi
|
|||||||
Change the following macros to locate the libraries and headers installed on the previous step.
|
Change the following macros to locate the libraries and headers installed on the previous step.
|
||||||
|
|
||||||
```makefile
|
```makefile
|
||||||
IMAGE = uefi_app
|
IMAGE = uefi_app
|
||||||
TARGET = main.efi
|
TARGET = main.efi
|
||||||
|
|
||||||
INCDIR = /usr/local/include
|
INCDIR = /usr/local/include
|
||||||
LIBDIR = /usr/local/lib
|
LIBDIR = /usr/local/lib
|
||||||
EFILIB = /usr/local/lib
|
EFILIB = /usr/local/lib
|
||||||
```
|
```
|
||||||
## Run on qemu :
|
## Run on qemu :
|
||||||
### Locate OVMF in Makefile:
|
### 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.
|
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
|
```makefile
|
||||||
OVMF_DIR = ../OVMFbin
|
OVMF_DIR = ../OVMF
|
||||||
```
|
```
|
||||||
Change the OVMF directory in the makefile.
|
Change the OVMF directory in the makefile.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user