diff options
Diffstat (limited to 'bootloader/Makefile.toml')
| -rw-r--r-- | bootloader/Makefile.toml | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/bootloader/Makefile.toml b/bootloader/Makefile.toml new file mode 100644 index 0000000..0d76678 --- /dev/null +++ b/bootloader/Makefile.toml @@ -0,0 +1,17 @@ +[tasks.clean] +command = "cargo" +args = ["clean"] + +[tasks.build] +command = "cargo" +args = ["build", "--target", "x86_64-unknown-uefi"] + +[tasks.esp] +command = "cp" +args = ["target/x86_64-unknown-uefi/debug/bootloader.efi", "esp/efi/boot/bootx64.efi"] +dependencies = ["build"] + +[tasks.run] +command = "qemu-system-x86_64" +args = ["-enable-kvm", "-drive", "if=pflash,format=raw,readonly=on,file=OVMF_CODE.4m.fd", "-drive", "if=pflash,format=raw,readonly=on,file=OVMF_VARS.4m.fd", "-drive", "format=raw,file=fat:rw:esp"] +dependencies = ["esp"] |
