Rework VBR
This commit is contained in:
parent
c288bbffb9
commit
1259fe14fe
3 changed files with 137 additions and 173 deletions
3
Makefile
3
Makefile
|
@ -23,12 +23,13 @@ kernel.rom: kernel/*.asm kernel/*.inc lib/*.inc
|
|||
nasm -s -o $@ -I lib -I kernel kernel/main.asm && scripts/fix-rom.sh $@
|
||||
|
||||
boot/%.bin: boot/%.asm lib/*.inc
|
||||
nasm -s -o $@ -I lib $<
|
||||
nasm -s -o $@ -I boot -I lib $<
|
||||
|
||||
fdimage.img: boot/floppy.bin kernel.rom
|
||||
dd if=/dev/zero bs=512 count=$$(( $(FD_CYLINDERS) * $(FD_HEADS) * $(FD_SECTORS) )) of=$@
|
||||
mformat -i $@ -t $(FD_CYLINDERS) -h $(FD_HEADS) -n $(FD_SECTORS) -B boot/floppy.bin ::
|
||||
mcopy -i $@ kernel.rom ::kernel.rom
|
||||
mattrib -i $@ +s ::kernel.rom
|
||||
|
||||
clean:
|
||||
rm -f *.com *.bin *.rom *.img *.log boot/*.bin
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue