diff options
author | Marvin Borner | 2020-04-28 23:33:34 +0200 |
---|---|---|
committer | Marvin Borner | 2020-04-28 23:33:34 +0200 |
commit | 34c752f6fe4f71169172f1b3e46b1eddf69eba6e (patch) | |
tree | c9acf3f6cac1791861d3506c4fe6f2c1dfedeae5 /run | |
parent | 5f8b5ce7efb7738eaebad43f9648975788ae19ff (diff) |
Added support for multiple user applications
Diffstat (limited to 'run')
-rwxr-xr-x | run | 18 |
1 files changed, 10 insertions, 8 deletions
@@ -93,20 +93,22 @@ make_build() { mkdir -p iso/ echo "Building..." - mkdir -p build - cd build + mkdir -p build/kernel/ + mkdir -p build/res/ + mkdir -p build/user/ + cd build/ cmake .. >/dev/null make cd .. # Create ISO mkdir -p ./iso/boot/grub/ - cp ./build/kernel.bin ./iso/boot/kernel.bin + cp ./build/kernel/kernel.bin ./iso/boot/kernel.bin cp ./src/bootloader/grub.cfg ./iso/boot/grub/ grub-mkrescue -o ./build/melvix.iso ./iso/ # Check ISO - if grub-file --is-x86-multiboot2 ./build/kernel.bin; then + if grub-file --is-x86-multiboot2 ./build/kernel/kernel.bin; then echo "Multiboot confirmed" else echo "Kernel is corrupted!" @@ -119,8 +121,8 @@ make_build() { mkdir -p ./mnt/etc/ mkdir -p ./mnt/usr/ mkdir -p ./mnt/bin/ - cp ./build/font.bin ./mnt/bin/font - cp ./build/sh.o ./mnt/bin/sh + 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/ @@ -155,8 +157,8 @@ make_image() { make_sync() { rm tags compile_commands.json ctags -R --exclude=.git --exclude=build --exclude=iso --exclude=cross . - mkdir -p cmake - cd cmake + mkdir -p build + cd build cmake .. >/dev/null mv compile_commands.json .. cd .. |