aboutsummaryrefslogtreecommitdiff
path: root/run
diff options
context:
space:
mode:
authorMarvin Borner2020-06-17 23:45:37 +0200
committerMarvin Borner2020-06-17 23:45:37 +0200
commitdcf6dca74b8baadb8fdade55aad9068a60c3d25e (patch)
tree6ab84ea4eae164a2fc17fe3862cc77d9f66e4b38 /run
parent4c9ba64345ee23f153e0b6afaacb48b9ef378cfe (diff)
Hello!
Diffstat (limited to 'run')
-rwxr-xr-xrun23
1 files changed, 9 insertions, 14 deletions
diff --git a/run b/run
index 507736a..bc583ab 100755
--- a/run
+++ b/run
@@ -89,7 +89,7 @@ make_cross() {
}
make_build() {
- mkdir -p build/ disk/bin/
+ mkdir -p build/ disk/bin/ disk/boot
echo "Building..."
cd build/
@@ -98,27 +98,22 @@ make_build() {
cd ..
# Create disk image
- # make_genext2fs
- # mkdir ./mnt/
- # mkdir -p ./mnt/etc/
- # mkdir -p ./mnt/usr/
- # mkdir -p ./mnt/bin/
-
- # cp ./build/res/font.bin ./mnt/bin/font
- # cp ./build/user/* ./mnt/bin/
- # echo "Hello world, ext2!" | tee -a ./mnt/etc/test
- # /usr/local/bin/genext2fs -B 4096 -d mnt -U -N 4096 -b 65536 ./build/disk.img
- # rm -r mnt/
+ make_genext2fs
+ /usr/local/bin/genext2fs -B 4096 -d disk/ -U -N 4096 -b 65536 build/disk.img
+
+ nasm ./src/entry.asm -f bin -o disk/boot/boot.bin
+ cp build/melvix.bin disk/boot/
+ dd if=disk/boot/boot.bin bs=512 of=build/disk.img
printf "Build finshed successfully!\n\n"
}
make_test() {
- qemu_with_flags -cdrom ./build/melvix.iso# -hda ./build/disk.img
+ qemu_with_flags -hda ./build/disk.img
}
make_disasm() {
- objdump -drwC -Mintel ./build/kernel.bin --visualize-jumps=color | less -R
+ objdump -drwC -Mintel build/kernel.bin --visualize-jumps=color | less -R
}
make_sync() {