Make boot file name configurable
This commit is contained in:
parent
d142fb4f39
commit
0b7e4cb3a4
10
Makefile
10
Makefile
@ -1,5 +1,6 @@
|
||||
PROGRAMS = hello.com
|
||||
DISTFILES = @rdos.com $(PROGRAMS)
|
||||
KERNEL = @rdos.com
|
||||
DISTFILES = $(KERNEL) $(PROGRAMS)
|
||||
ROMS =
|
||||
|
||||
QEMU = qemu-system-i386
|
||||
@ -62,13 +63,12 @@ fat6.bs: boot/fat.asm
|
||||
fd%.img: $(DISTFILES) $(SYS)
|
||||
mformat -C -i $@ -f $* -c 2 -v "$(LABEL)" ::
|
||||
mcopy -i $@ $(DISTFILES) ::
|
||||
$(SYS) $@ @rdos.com
|
||||
$(SYS) $@ $(KERNEL)
|
||||
|
||||
hdd.img: mbr.bs @rdos.com fd1440.img
|
||||
hdd.img: mbr.bs $(KERNEL) fd1440.img
|
||||
dd if=mbr.bs bs=512 count=1 of=$@
|
||||
dd if=@rdos.com bs=512 seek=1 of=$@
|
||||
dd if=$(KERNEL) 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
|
||||
|
Loading…
Reference in New Issue
Block a user