Re-add support for booting from qemu harddisk
This commit is contained in:
parent
84b754551c
commit
8131db9b29
2 changed files with 31 additions and 119 deletions
9
Makefile
9
Makefile
|
@ -64,6 +64,12 @@ fd%.img: $(DISTFILES) $(SYS)
|
|||
mcopy -i $@ $(DISTFILES) ::
|
||||
$(SYS) $@ @rdos.com
|
||||
|
||||
hdd.img: mbr.bs @rdos.com fd1440.img
|
||||
dd if=mbr.bs bs=512 count=1 of=$@
|
||||
dd if=@rdos.com bs=512 seek=1 of=$@
|
||||
dd if=fd1440.img bs=512 seek=63 of=$@
|
||||
dd if=/dev/zero bs=512 seek=$$(( 63 * 23 )) count=63 of=$@
|
||||
|
||||
clean:
|
||||
rm -f *.com *.bs *.0 *.lst *.img *.bin *.rom
|
||||
rm -f host/*.elf
|
||||
|
@ -73,3 +79,6 @@ qemu-floppy3: fd1440.img $(ROMS)
|
|||
|
||||
qemu-floppy5: fd360.img $(ROMS)
|
||||
$(QEMU) $(QEMU_ARGS) -boot a -fda fd360.img
|
||||
|
||||
qemu-hdd: hdd.img $(ROMS)
|
||||
$(QEMU) $(QEMU_ARGS) -boot c -hda hdd.img
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue