Add first steps for VBR bootloader

This commit is contained in:
Nero 2019-03-25 08:51:37 +00:00
parent 414f35a1ce
commit 2229c319b6
3 changed files with 59 additions and 1 deletions

View file

@ -1,7 +1,14 @@
default: kernel.com
kernel.com: kernel/*.asm
nasm -s -o kernel.com -I kernel kernel/main.asm
nasm -s -o $@ -I kernel kernel/main.asm
vbr.bin: boot/vbr.asm
nasm -s -o $@ -I lib $<
fdimage.img: vbr.bin kernel.com
dd if=/dev/zero bs=512 count=720 of=$@
dd if=vbr.bin bs=512 count=1 conv=notrunc of=$@
clean:
rm -f *.com