hachem.wtf
aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorhachem <im@hachem.wtf>2026-09-12 10:59:26 +0200
committerhachem <im@hachem.wtf>2026-09-12 10:59:26 +0200
commitd6d908e3386e107b41241e9eda7dc546581524df (patch)
tree8219d02a7494152722ac7f32140d63c8a3b3daa7 /Makefile
parent4f540af34d7a88547d60bed7bd28850e6d0e18ab (diff)
feat: basic keyboard driver + tester shell
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile40
1 files changed, 20 insertions, 20 deletions
diff --git a/Makefile b/Makefile
index e732382..4d95142 100644
--- a/Makefile
+++ b/Makefile
@@ -1,10 +1,8 @@
-# Revel — build the kernel, assemble a Limine ISO, boot it in QEMU.
-#
-# make build the ISO (default)
-# make run build and boot it headless (serial on stdout)
-# make kernel just compile the kernel ELF
-# make clean remove build output (kernel, ISO, caches)
-# make distclean also remove Limine's built host tool
+# make : build the ISO (default)
+# make run : build and boot it headless (serial on stdout)
+# make kernel : just compile the kernel ELF
+# make clean : remove build output (kernel, ISO, caches)
+# make distclean : also remove Limine's built host tool
ZIG ?= zig
QEMU ?= qemu-system-x86_64
@@ -22,26 +20,28 @@ kernel:
limine/limine:
$(MAKE) -C limine
+# WARNING: DO NOT FUCK W/ THE \ DELIMETERS THEY ARE MADE TO BE PRETTY
+# ON OUTPUT, NOT PRETTY IN CODE. IF YOU DONT LIKE IT, GO
+# SHOKE ON A TIT
iso: kernel limine/limine
rm -rf iso_root
mkdir -p iso_root/boot/limine iso_root/EFI/BOOT
- cp $(KERNEL) iso_root/boot/revel
- cp boot/limine.conf iso_root/boot/limine/
+ cp $(KERNEL) iso_root/boot/revel
+ cp boot/limine.conf iso_root/boot/limine/
cp limine/limine-bios.sys \
- limine/limine-bios-cd.bin \
- limine/limine-uefi-cd.bin iso_root/boot/limine/
- cp limine/BOOTX64.EFI \
- limine/BOOTIA32.EFI iso_root/EFI/BOOT/
+ limine/limine-bios-cd.bin \
+ limine/limine-uefi-cd.bin iso_root/boot/limine/
+ cp limine/BOOTX64.EFI \
+ limine/BOOTIA32.EFI iso_root/EFI/BOOT/
xorriso -as mkisofs -R -r -J \
- -b boot/limine/limine-bios-cd.bin \
- -no-emul-boot -boot-load-size 4 -boot-info-table \
- -hfsplus -apm-block-size 2048 \
- --efi-boot boot/limine/limine-uefi-cd.bin \
- -efi-boot-part --efi-boot-image --protective-msdos-label \
- iso_root -o $(ISO)
+ -b boot/limine/limine-bios-cd.bin \
+ -no-emul-boot -boot-load-size 4 -boot-info-table \
+ -hfsplus -apm-block-size 2048 \
+ --efi-boot boot/limine/limine-uefi-cd.bin \
+ -efi-boot-part --efi-boot-image --protective-msdos-label \
+ iso_root -o $(ISO)
./limine/limine bios-install $(ISO)
-# boot it in a real QEMU window. serial goes back later.
run: iso
$(QEMU) -M q35 -m 256M -cdrom $(ISO) -boot d -no-reboot -no-shutdown