Updated Makefile and .gitignore to accomodate for FAT16 disk creation
This commit is contained in:
parent
ed9d22fb42
commit
378c199eab
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,2 +1,3 @@
|
|||||||
*.bin
|
*.bin
|
||||||
*.img
|
*.img
|
||||||
|
img.d/
|
7
Makefile
7
Makefile
@ -1,5 +1,10 @@
|
|||||||
disk.img: boot.bin kernel.bin
|
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
|
boot.bin: boot.asm
|
||||||
nasm boot.asm -o $@
|
nasm boot.asm -o $@
|
||||||
|
Loading…
x
Reference in New Issue
Block a user