From a2b8bb2cb77f401cd1ec17347f2c5cde90f10c11 Mon Sep 17 00:00:00 2001 From: Arslaan Pathan Date: Tue, 2 Jun 2026 21:04:03 +1200 Subject: Add setup targets, and fix issue where Limine could be cloned but not built --- Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index ad33683..65c9d27 100644 --- a/Makefile +++ b/Makefile @@ -121,13 +121,13 @@ $(LIMINE_DIR): $(EXTERNAL_DIR) echo "[yerba] cloning Limine..."; \ git clone --depth 1 --branch=$(LIMINE_BRANCH) $(LIMINE_REPO) $(LIMINE_DIR); \ fi - echo "[yerba] building Limine..." - $(MAKE) -C $(LIMINE_DIR) iso: kernel initramfs busybox rootfs $(LIMINE_DIR) @if [ -f $(ISO_PATH) ]; then \ echo "[yerba] iso already created, skipping..."; \ else \ + echo "[yerba] building Limine..."; \ + $(MAKE) -C $(LIMINE_DIR); \ echo "[yerba] bootstrapping Limine and creating ISO..."; \ mkdir -p $(ISO_ROOT)/boot/limine; \ mkdir -p $(ISO_ROOT)/EFI/BOOT; \ @@ -148,3 +148,6 @@ run: iso @echo "[yerba] booting in QEMU..." # qemu-system-x86_64 -kernel $(BUILD_DIR)/bzImage -initrd $(BUILD_DIR)/initramfs.cpio.gz -nographic -append "console=ttyS0" qemu-system-x86_64 -cdrom $(ISO_PATH) -m 2G -cpu host -enable-kvm + +setup: $(LINUX_DIR) $(LIMINE_DIR) $(BUSYBOX_DIR) + @echo "[yerba] all repos fetched" -- cgit v1.2.3