summaryrefslogtreecommitdiff
path: root/bootloader/Makefile.toml
diff options
context:
space:
mode:
authorVaze <vaze@vaze.dev>2026-05-25 10:25:45 +0200
committerVaze <vaze@vaze.dev>2026-05-25 10:25:45 +0200
commit816f9b7cb300a7f3979b5f29b3677e84a3c28880 (patch)
tree48ac4ce07f134f5877e3380507aaba1875f86256 /bootloader/Makefile.toml
parent00552fcd03f86bffed8c2f6a9d110981cb869489 (diff)
Created a .gitignore to remove nasty build artifacts and created a Makefile.toml for cargo make to automate bootloader build process.
Diffstat (limited to 'bootloader/Makefile.toml')
-rw-r--r--bootloader/Makefile.toml17
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"]