Updated Makefile and .gitignore to allow for many other binaries to be added

This commit is contained in:
Xnoe 2021-08-29 11:26:38 +01:00
parent 0dca50b0d4
commit 4f2e8c5cd3
Signed by: xnoe
GPG Key ID: 45AC398F44F0DAFE
2 changed files with 8 additions and 4 deletions

1
.gitignore vendored
View File

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

View File

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