From 378c199eab65e06cf86fb1aa1d486828c9a3a62e Mon Sep 17 00:00:00 2001 From: Xnoe Date: Sun, 29 Aug 2021 06:58:32 +0100 Subject: [PATCH] Updated Makefile and .gitignore to accomodate for FAT16 disk creation --- .gitignore | 1 + Makefile | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 7cf5001..045c54d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ *.bin *.img +img.d/ \ No newline at end of file diff --git a/Makefile b/Makefile index 07db89e..1b481dc 100644 --- a/Makefile +++ b/Makefile @@ -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 $@