From 6f0b585bfe8f1e574796b55e37e9e1ce0540d800 Mon Sep 17 00:00:00 2001 From: lordtet Date: Mon, 26 May 2025 17:46:55 -0400 Subject: [PATCH] Quick addition to the makefile, run_iso will build the ISO image and then run the full image. As opposed to run, which will just run the kernel from QEMU. --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 8c89003..89e0417 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,9 @@ #Some definitions SRC_DIR = src BUILD_DIR = build + LOADER_DIR = module_bootloader +LOADER_IMG = uOS.iso KERNEL_MAIN = $(SRC_DIR)/main.c KERNEL_MAIN_OBJ = $(BUILD_DIR)/main.o @@ -42,7 +44,10 @@ iso: all cd $(LOADER_DIR); \ make all; \ cd ..; \ - mv $(LOADER_DIR)/build/uOS.iso $(BUILD_DIR)/ + mv $(LOADER_DIR)/build/$(LOADER_IMG) $(BUILD_DIR)/ + +run_iso: iso + $(QEMU) -cdrom $(BUILD_DIR)/$(LOADER_IMG) clean: rm -rf $(BUILD_DIR)/*