diff options
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 19 |
1 files changed, 15 insertions, 4 deletions
@@ -16,6 +16,8 @@ #lets use the size of a 1.44 floppy for a start for our boot img IMAGE_SIZE=1474560 +#ap bin : +MP_IMG_START=25088 #font data starts at sector 50 FONT_DATA_START=25600 @@ -47,6 +49,12 @@ KERNEL_ENTRY=./boot/kernel_entry.o MBR=./boot/mbr.bin + +#multiprocessor binary entry + +MP_BIN=./boot/mp.bin + + #some fillup data (zeros) FILLUP=./data/fill.bin @@ -83,13 +91,16 @@ binfont.bin: data/binfont.src # master boot record, kernel binary and fool-font -FoolOS.img: Fool.img FoolData.img $(FILLUP) +FoolOS.img: mbr_kernel_mp.img binfont.img $(FILLUP) cat $^ | head -c $(IMAGE_SIZE) > $@ -Fool.img: $(MBR) kernel.bin $(FILLUP) +mbr_kernel_mp.img: mbr_kernel.img $(MP_BIN) $(FILLUP) cat $^ | head -c $(FONT_DATA_START) > $@ -FoolData.img: binfont.bin +mbr_kernel.img: $(MBR) kernel.bin $(FILLUP) + cat $^ | head -c $(MP_IMG_START) > $@ + +binfont.img: binfont.bin cat $^ > $@ @@ -104,7 +115,7 @@ run: FoolOS.img ############ cleanup ############ clean: - -rm *.bin *.img bochs.log $(KERNEL_ENTRY) $(ASMOBJECTS) $(OBJECTS) $(FILLUP) $(MBR) bochs.out ne2k-tx.log ne2k-txdump.txt + -rm *.bin *.img bochs.log $(KERNEL_ENTRY) $(ASMOBJECTS) $(OBJECTS) $(FILLUP) $(MBR) $(MP_BIN) bochs.out ne2k-tx.log ne2k-txdump.txt ############ test stuff ############ acer: FoolOS.img |
