summaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
authorBenji Dial <benji3.141@gmail.com>2020-05-25 15:35:45 -0400
committerBenji Dial <benji3.141@gmail.com>2020-05-25 15:35:45 -0400
commit44c0352f0d4124d7c367352e4de746a51b9db42b (patch)
tree65ad0862c92c4e2d134585b48fbfcc5bead165ea /makefile
parentc99a319d3405d4ac76881cae288c29624fa34a44 (diff)
downloadportland-os-44c0352f0d4124d7c367352e4de746a51b9db42b.tar.gz
got file loading working properly
Diffstat (limited to 'makefile')
-rw-r--r--makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/makefile b/makefile
index afac808..bc4bdd7 100644
--- a/makefile
+++ b/makefile
@@ -1,4 +1,4 @@
-disk: kernel boot
+disk: kernel boot fs-
mkdir -p obj out
/sbin/mkfs.fat -C -f 1 -F 16 -n "PORTLAND OS" -R 17 -s 1 -S 512 obj/shadow.img 8192
echo -n -e '\xeb\x3c' > obj/jmp.bin
@@ -6,13 +6,17 @@ disk: kernel boot
dd if=out/boot.bin of=obj/shadow.img obs=1 seek=62 conv=notrunc
dd if=out/kernel.bin of=obj/shadow.img seek=1 conv=notrunc
mv obj/shadow.img out/disk.img
+ mcopy -i out/disk.img -s out/fs/bleh.txt ::/
vdi-file: disk
VBoxManage convertfromraw out/disk.img out/disk.vdi --uuid a61929ed-3bf2-45ff-b98a-44f87c616dba
-debug: vdi-file
+debug: disk
gdb -x qemu-debug.gdb
+fs-:
+ cp -r fs out/fs
+
kgccargs = -m32 -ffreestanding -fno-asynchronous-unwind-tables
kernel:
mkdir -p obj/kernel out