Create fdimage using mtools

This commit is contained in:
Nero 2019-03-27 22:10:03 +00:00
parent c88395c12d
commit f1d11d84a2

View File

@ -7,7 +7,9 @@ vbr.bin: boot/vbr.asm
nasm -s -o $@ -I lib $<
fdimage.img: vbr.bin kernel.com
cat vbr.bin kernel.com > $@
dd if=/dev/zero bs=512 count=720 of=$@
mformat -i $@ -f 360 -B vbr.bin -v "BOOT2B" ::
mcopy -i fdimage.img kernel.com ::boot.bin
clean:
rm -f *.com
rm -f *.com *.bin *.img