Pave way for supporting FAT16 and FAT12
This commit is contained in:
parent
e34accfcff
commit
f46871502c
3 changed files with 273 additions and 537 deletions
31
Makefile
31
Makefile
|
@ -48,20 +48,41 @@ vga11.com: cp437.bin
|
|||
%.bs: boot/%.asm
|
||||
$(NASM) $(NASM_ARGS) -o $@ $<
|
||||
|
||||
# Special case: variations of FAT vbr
|
||||
fat1.bs: boot/fat.asm
|
||||
$(NASM) $(NASM_ARGS) -DFAT12 -DCHS -o $@ $<
|
||||
|
||||
fat4.bs: boot/fat.asm
|
||||
$(NASM) $(NASM_ARGS) -DFAT16 -DCHS -o $@ $<
|
||||
|
||||
fat6.bs: boot/fat.asm
|
||||
$(NASM) $(NASM_ARGS) -DFAT16 -DCHS -DLARGE -o $@ $<
|
||||
|
||||
fatb.bs: boot/fat.asm
|
||||
$(NASM) $(NASM_ARGS) -DFAT32 -DCHS -DLARGE -o $@ $<
|
||||
|
||||
fatc.bs: boot/fat.asm
|
||||
$(NASM) $(NASM_ARGS) -DFAT32 -DLBA -DLARGE -o $@ $<
|
||||
|
||||
fate.bs: boot/fat.asm
|
||||
$(NASM) $(NASM_ARGS) -DFAT16 -DLBA -DLARGE -o $@ $<
|
||||
|
||||
# BIOS option roms
|
||||
%.rom: rom/%.asm utils/fix-rom
|
||||
$(NASM) $(NASM_ARGS) -o $@ $< && utils/fix-rom $@
|
||||
|
||||
fdimage.img: fat.bs $(DISTFILES)
|
||||
mformat -C -i $@ -f $(FLOPPY) -B fat.bs ::
|
||||
mcopy -i $@ $(DISTFILES) ::
|
||||
fdimage.img: fat1.bs $(DISTFILES)
|
||||
mformat -C -i $@ -f $(FLOPPY) -B fat1.bs ::
|
||||
mmd -i $@ ::rdos
|
||||
mcopy -i $@ $(DISTFILES) ::rdos
|
||||
mattrib -i $@ +s ::rdos ::rdos/kernel.bs
|
||||
|
||||
hdimage.img: mbr.bs fdimage.img
|
||||
cat mbr.bs fdimage.img >$@
|
||||
|
||||
part.img: fat32.bs $(DISTFILES)
|
||||
part.img: fatc.bs $(DISTFILES)
|
||||
dd if=/dev/zero bs=1024 count=33k of=$@
|
||||
mformat -i $@ -F -B fat32.bs ::
|
||||
mformat -i $@ -F -B fatc.bs ::
|
||||
mmd -i $@ ::rdos
|
||||
mcopy -i $@ $(DISTFILES) ::rdos
|
||||
mattrib -i $@ +s ::rdos ::rdos/kernel.bs
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue