Add first steps for VBR bootloader
This commit is contained in:
parent
414f35a1ce
commit
2229c319b6
3 changed files with 59 additions and 1 deletions
9
Makefile
9
Makefile
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue