diff options
author | Benji Dial <benji3.141@gmail.com> | 2019-12-11 10:14:32 -0500 |
---|---|---|
committer | Benji Dial <benji3.141@gmail.com> | 2019-12-11 10:14:32 -0500 |
commit | aeff38fe153addba50b40600166acd42e7885e99 (patch) | |
tree | 1741a742414284753243ef6f439dad441eb868e9 /makefile | |
download | portland-os-aeff38fe153addba50b40600166acd42e7885e99.tar.gz |
still need to read, parse root directory to find kernel and need to put boot signature at 0x7dfe to jump around
Diffstat (limited to 'makefile')
-rw-r--r-- | makefile | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/makefile b/makefile new file mode 100644 index 0000000..c3d4174 --- /dev/null +++ b/makefile @@ -0,0 +1,12 @@ +floppy: out bootloader + mkfs.fat -C -f 1 -F 12 -n "PORTLAND OS" -R 2 -S 512 out/floppy.img 1440 + dd if=obj/bootloader.bin of=out/floppy.img bs=1 seek=62 conv=notrunc + +bootloader: obj + nasm src/bootloader.bin -o obj/bootloader.bin + +obj: + mkdir -p obj + +out: + mkdir -p out
\ No newline at end of file |