From 816f9b7cb300a7f3979b5f29b3677e84a3c28880 Mon Sep 17 00:00:00 2001 From: Vaze Date: Mon, 25 May 2026 10:25:45 +0200 Subject: Created a .gitignore to remove nasty build artifacts and created a Makefile.toml for cargo make to automate bootloader build process. --- bootloader/Makefile.toml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 bootloader/Makefile.toml (limited to 'bootloader/Makefile.toml') 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"] -- cgit v1.2.3