Updated Makefile and .gitignore to accomodate for FAT16 disk creation

This commit is contained in:
Xnoe 2021-08-29 06:58:32 +01:00
parent ed9d22fb42
commit 378c199eab
Signed by: xnoe
GPG Key ID: 45AC398F44F0DAFE
2 changed files with 7 additions and 1 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
*.bin
*.img
img.d/

View File

@ -1,5 +1,10 @@
disk.img: boot.bin kernel.bin
cat boot.bin kernel.bin > disk.img
dd if=/dev/zero of=disk.img count=43 bs=100k
dd if=boot.bin of=disk.img conv=notrunc
mount disk.img img.d
cp kernel.bin img.d
umount img.d
chmod 777 disk.img
boot.bin: boot.asm
nasm boot.asm -o $@