Revert to more sensible kernel.bs boot scheme
I think i should consider it a necessity that the kernel is accessible as a regular file. This makes installing rdos on another blockdev much easier.
This commit is contained in:
parent
8ed9fe7465
commit
31eac279c2
3 changed files with 5 additions and 36 deletions
10
Makefile
10
Makefile
|
@ -1,5 +1,5 @@
|
|||
PROGRAMS = hello.com
|
||||
DISTFILES = $(PROGRAMS)
|
||||
DISTFILES = kernel.bs $(PROGRAMS)
|
||||
ROMS =
|
||||
|
||||
QEMU = qemu-system-i386
|
||||
|
@ -59,10 +59,10 @@ fat6.bs: boot/fat.asm
|
|||
%.rom: rom/%.asm utils/fix-rom
|
||||
$(NASM) $(NASM_ARGS) -o $@ $< && utils/fix-rom $@
|
||||
|
||||
fd%.img: kernel.bs $(DISTFILES)
|
||||
mformat -C -i $@ -f $* -R 8 -v "$(LABEL)" -B kernel.bs ::
|
||||
dd if=kernel.bs conv=notrunc bs=512 skip=1 seek=1 of=$@
|
||||
mcopy -i $@ $(DISTFILES) ::
|
||||
fd%.img: fat1.bs $(DISTFILES)
|
||||
mformat -C -i $@ -f $* -R 8 -v "$(LABEL)" -B fat1.bs ::
|
||||
mcopy -i $@ $(DISTFILES) ::
|
||||
mattrib -i $@ +s ::kernel.bs
|
||||
|
||||
hdimage.img: mbr.bs fd1440.img
|
||||
cat mbr.bs fd1440.img >$@
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue