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.
This commit is contained in:
lordtet 2025-05-26 17:46:55 -04:00
parent 0831fb86e4
commit 6f0b585bfe

View file

@ -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)/*