Porting lox to UEFI Firmware
- gcc compiler (from MinGW-w64 project)
- qemu
Run in QEMU:
- Create a directory called
esp
. Then, createEFI
directory underesp
, and create aBOOT
directory underesp/EFI
. - Simply type
make
to launch it in qemu.
Boot to real computer:
- Grab an useless portable disk, then format it into FAT32 file system.
- Create a directory called
EFI
in disk. Then, create aBOOT
directory underEFI
. - Use
make compile
to compile the EFI file (default tomain.efi
), then copy it to theBOOT
directory we just created. - Rename
main.efi
toBOOTX64.EFI
. - In the
UEFI Firmware Settings
page, drag the portable disk we just used to the first item of the pageboot options
.
If you have done everything correct, you can see a Lox prompt in the QEMU window or on the screen of the computer.