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:
parent
0831fb86e4
commit
6f0b585bfe
1 changed files with 6 additions and 1 deletions
7
Makefile
7
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)/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue