summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile18
-rw-r--r--README.md4
-rw-r--r--boot1/Makefile3
-rw-r--r--boot2/Makefile4
-rw-r--r--boot2/mp.asm2
5 files changed, 16 insertions, 15 deletions
diff --git a/Makefile b/Makefile
index 62b053e..93e06ab 100644
--- a/Makefile
+++ b/Makefile
@@ -42,7 +42,7 @@ ASMSOURCES=$(wildcard ./asm/*.asm)
#kernel object files
OBJECTS=$(patsubst %.c, %.o, $(SOURCES))
ASMOBJECTS=$(patsubst %.asm, %.o, $(ASMSOURCES))
-KERNEL_ENTRY=./boot/kernel_entry.o
+KERNEL_ENTRY=./boot2/kernel_entry.o
# deps
DEPS=$(patsubst %.c, %.d, $(SOURCES))
@@ -57,17 +57,19 @@ include Makefile.common
-include $(DEPS)
#master boot record
-MBR=./boot0/mbr.bin
+MBR=./boot1/mbr.bin
$(MBR):
- make -C boot0
+ make -C boot1
#stage 2 bootloader
-STAGE2=./boot/stage2.bin
+STAGE2=./boot2/stage2.bin
$(STAGE2):
- make -C boot
+ make -C boot2
#multiprocessor binary entry
-MP_BIN=./boot/mp.bin
+MP_BIN=./boot2/mp.bin
+$(MP_BIN):
+ make -C boot2 mp.bin
#some fillup data (zeros)
FILLUP=./data/fill.bin
@@ -129,9 +131,9 @@ stick: FoolOS.img
clean_release:
-rm *.bin FoolData.img binfont.img bochs.log $(KERNEL_ENTRY) $(ASMOBJECTS) $(OBJECTS) $(FILLUP) $(MBR) $(MP_BIN) bochs.out ne2k-tx.log ne2k-txdump.txt $(STAGE2) $(DEPS)
+ make -C boot1 clean
+ make -C boot2 clean
make -C userspace clean
- make -C boot0 clean
- make -C boot clean
clean: clean_release
-rm FoolOS.img FoolOS.vdi
diff --git a/README.md b/README.md
index 11597dc..e66e89b 100644
--- a/README.md
+++ b/README.md
@@ -112,8 +112,8 @@ Organization
* asm/ - NASM assembler files
* bochs/ -Bochs config files
-* boot/ - 2nd stage bootloader
-* boot0/ - 1st stage bootloader
+* boot1/ - 2nd stage bootloader
+* boot2/ - 1st stage bootloader
* data/ - datafiles (font-file and fill.asm)
* fs/ - file system related source
* kernel/ - kernel source
diff --git a/boot1/Makefile b/boot1/Makefile
index e930498..b9b2e24 100644
--- a/boot1/Makefile
+++ b/boot1/Makefile
@@ -11,6 +11,3 @@ $(MBR): $(ASM_SOURCES)
clean:
-rm $(MBR)
-
-
-
diff --git a/boot2/Makefile b/boot2/Makefile
index 17dc454..f1de230 100644
--- a/boot2/Makefile
+++ b/boot2/Makefile
@@ -3,13 +3,15 @@
include ../Makefile.common
STAGE2=stage2.bin
+MP=mp.bin
ASM_SOURCES=$(wildcard *.asm)
$(STAGE2): $(ASM_SOURCES)
+$(MP): $(ASM_SOURCES)
clean:
- -rm $(STAGE2)
+ -rm $(STAGE2) $(MP)
diff --git a/boot2/mp.asm b/boot2/mp.asm
index 072aa74..b6efd04 100644
--- a/boot2/mp.asm
+++ b/boot2/mp.asm
@@ -34,4 +34,4 @@ boot_32_pm:
;
call 0x18000 ;jump into our Kernel!
-%include "boot/GDT.asm"
+%include "GDT.asm"