Commits

prabirshrestha committed 2deab79

copy mbr - boot0.bin to floppy.img

Comments (0)

Files changed (1)

boot/src/arch/rules.x86.mk

 	$(LD) -T $(BOOTSRCPATH)boot0.ld -o $@ $^
 
 $(BOOTSRCPATH)floppy.img: $(BOOTSRCPATH)boot0.bin $(BOOTSRCPATH)boot1.bin
-	# create an empty image
+	# create an empty floppy image
 	dd if=/dev/zero of=$@ bs=512 count=1440
 	# mkdosfs -F 12 $@
+
+	# copy mbr (boot0.bin)
+	dd if=$(BOOTSRCPATH)boot0.bin of=$@ bs=512 seek=0 count=1 conv=notrunc