Updated Makefile and .gitignore to allow for many other binaries to be added
This commit is contained in:
parent
0dca50b0d4
commit
4f2e8c5cd3
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,3 +1,4 @@
|
|||||||
*.bin
|
*.bin
|
||||||
*.img
|
*.img
|
||||||
|
*.sector
|
||||||
img.d/
|
img.d/
|
11
Makefile
11
Makefile
@ -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 $@
|
Loading…
x
Reference in New Issue
Block a user