diff --git a/compile.sh b/compile.sh deleted file mode 100755 index 8360c7d..0000000 --- a/compile.sh +++ /dev/null @@ -1,25 +0,0 @@ -#!/usr/bin/bash - -srcdir=src -bindir=bin - -compile_bootloader() { - echo "Compiling bootloader... " - nasm -f bin $srcdir/bootloader/bootloader.asm -i $srcdir/bootloader -o $bindir/bootloader.bin -} - -compile_kernel() { - echo "Compiling kernel... " - gcc -fno-pie -m32 -Os -ffreestanding -c $srcdir/kernel/kernel.c -o $bindir/kernel.o && gcc -o $bindir/kernel.bin $bindir/kernel.o -Wl,--oformat=binary -ffreestanding -nostdlib -shared -Ttext 0x1000 -m32 -} - -create_os_image() { - echo "Creating OS image... " - cat $bindir/bootloader.bin $bindir/kernel.bin > $bindir/os-image -} - - - -compile_bootloader -compile_kernel -create_os_image diff --git a/grub_compile.sh b/grub_compile.sh deleted file mode 100755 index 5bb365d..0000000 --- a/grub_compile.sh +++ /dev/null @@ -1,20 +0,0 @@ -#!/usr/bin/bash - -srcdir=src -bindir=bin - -make_grub() { - echo "Making GRUB..." - mkdir -p $bindir/boot/grub - cp $bindir/kernel.bin $bindir/boot/eOS.bin - cp $srcdir/grub/grub.cfg $bindir/boot/grub/grub.cfg - grub-mkrescue -o $bindir/eOS.iso $bindir -} - -compile_kernel() { - echo "Compiling kernel... " - gcc -fno-pie -m32 -Os -ffreestanding -c $srcdir/kernel/kernel.c -o $bindir/kernel.o && gcc -o $bindir/kernel.bin $bindir/kernel.o -Wl,--oformat=binary -ffreestanding -nostdlib -shared -Ttext 0x1000 -m32 -} - -compile_kernel -make_grub diff --git a/start.sh b/start.sh deleted file mode 100755 index 82314f9..0000000 --- a/start.sh +++ /dev/null @@ -1,19 +0,0 @@ -#!/usr/bin/bash - -bootloader=bin/bootloader.bin -osimage=bin/os-image - -start_bootloader() { - qemu-system-x86_64 $osimage -} - -compile() { - /usr/bin/bash $PWD/compile.sh -} - -if test -f "$PWD/$bootloader"; then - rm $PWD/$bootloader -fi - - -compile && start_bootloader