diff --git a/Asuro.iso b/Asuro.iso new file mode 100644 index 00000000..3c7c9d90 Binary files /dev/null and b/Asuro.iso differ diff --git a/compile.sh b/compile.sh new file mode 100755 index 00000000..79518c4c --- /dev/null +++ b/compile.sh @@ -0,0 +1,72 @@ +#!/bin/sh +ERRCOUNT=0 +echo "=======================" +echo "== ASURO COMPILATION ==" +echo "=======================" +echo " " +echo "Compiling ASM Stub..." +echo " " +nasm -f elf src/stub.asm -o lib/stub.o +if [ $? -ne 0 ] +then + echo "Failed to compile stub!" + ERRCOUNT=$((ERRCOUNT+1)) +else + echo "Success." +fi + +echo " " +echo "=======================" +echo " " +echo "Compiling FPC Sources..." +echo " " +fpc -Aelf -n -O3 -Op3 -Si -Sc -Sg -Xd -CX -XXs -Rintel -Tlinux -FElib/ src/kernel.pas +if [ $? -ne 0 ] +then + echo "Failed to compile FPC Sources!" + ERRCOUNT=$((ERRCOUNT+1)) +else + echo "Success." +fi + +echo " " +echo "=======================" +echo " " +echo "Linking..." +echo " " +ld -m elf_i386 -s --gc-sections -Tlinker.script -o bin/kernel.bin lib/stub.o lib/kernel.o lib/multiboot.o lib/system.o lib/console.o +if [ $? -ne 0 ] +then + echo "Failed linking!" + ERRCOUNT=$((ERRCOUNT+1)) +else + echo "Success." +fi + +echo " " +echo "=======================" +echo " " +echo "Creating ISO..." +echo " " +cp bin/kernel.bin iso/boot/asuro.bin +grub-mkrescue -o Asuro.iso iso +if [ $? -ne 0 ] +then + echo "Failed to create ISO!" + ERRCOUNT=$((ERRCOUNT+1)) +else + echo "Success." +fi + +echo " " +echo "=======================" +echo " " +if [ "$ERRCOUNT" -ne "0" ] +then + echo "$ERRCOUNT Errors Occurred, please review." +else + echo "No errors." +fi +echo " " +echo "=======================" +echo " " diff --git a/compile.sh~ b/compile.sh~ new file mode 100755 index 00000000..79518c4c --- /dev/null +++ b/compile.sh~ @@ -0,0 +1,72 @@ +#!/bin/sh +ERRCOUNT=0 +echo "=======================" +echo "== ASURO COMPILATION ==" +echo "=======================" +echo " " +echo "Compiling ASM Stub..." +echo " " +nasm -f elf src/stub.asm -o lib/stub.o +if [ $? -ne 0 ] +then + echo "Failed to compile stub!" + ERRCOUNT=$((ERRCOUNT+1)) +else + echo "Success." +fi + +echo " " +echo "=======================" +echo " " +echo "Compiling FPC Sources..." +echo " " +fpc -Aelf -n -O3 -Op3 -Si -Sc -Sg -Xd -CX -XXs -Rintel -Tlinux -FElib/ src/kernel.pas +if [ $? -ne 0 ] +then + echo "Failed to compile FPC Sources!" + ERRCOUNT=$((ERRCOUNT+1)) +else + echo "Success." +fi + +echo " " +echo "=======================" +echo " " +echo "Linking..." +echo " " +ld -m elf_i386 -s --gc-sections -Tlinker.script -o bin/kernel.bin lib/stub.o lib/kernel.o lib/multiboot.o lib/system.o lib/console.o +if [ $? -ne 0 ] +then + echo "Failed linking!" + ERRCOUNT=$((ERRCOUNT+1)) +else + echo "Success." +fi + +echo " " +echo "=======================" +echo " " +echo "Creating ISO..." +echo " " +cp bin/kernel.bin iso/boot/asuro.bin +grub-mkrescue -o Asuro.iso iso +if [ $? -ne 0 ] +then + echo "Failed to create ISO!" + ERRCOUNT=$((ERRCOUNT+1)) +else + echo "Success." +fi + +echo " " +echo "=======================" +echo " " +if [ "$ERRCOUNT" -ne "0" ] +then + echo "$ERRCOUNT Errors Occurred, please review." +else + echo "No errors." +fi +echo " " +echo "=======================" +echo " " diff --git a/iso/boot/asuro.bin b/iso/boot/asuro.bin new file mode 100755 index 00000000..b0121080 Binary files /dev/null and b/iso/boot/asuro.bin differ diff --git a/iso/boot/grub/grub.cfg b/iso/boot/grub/grub.cfg new file mode 100644 index 00000000..c8f119a5 --- /dev/null +++ b/iso/boot/grub/grub.cfg @@ -0,0 +1,3 @@ +menuentry "Asuro" { + multiboot /boot/asuro.bin +} diff --git a/lib/console.ppu b/lib/console.ppu index d5db41b4..3a57db83 100644 Binary files a/lib/console.ppu and b/lib/console.ppu differ diff --git a/lib/kernel.ppu b/lib/kernel.ppu index dcbe3367..506055c8 100644 Binary files a/lib/kernel.ppu and b/lib/kernel.ppu differ diff --git a/lib/libpconsole.a b/lib/libpconsole.a index e91a8bd0..bf2d5d7b 100644 Binary files a/lib/libpconsole.a and b/lib/libpconsole.a differ diff --git a/lib/libpkernel.a b/lib/libpkernel.a index 9d3b3bf1..85c3c579 100644 Binary files a/lib/libpkernel.a and b/lib/libpkernel.a differ diff --git a/lib/libpmultiboot.a b/lib/libpmultiboot.a index 529966ba..f2cf7f15 100644 Binary files a/lib/libpmultiboot.a and b/lib/libpmultiboot.a differ diff --git a/lib/libpsystem.a b/lib/libpsystem.a index 488126b5..f6f9a67d 100644 Binary files a/lib/libpsystem.a and b/lib/libpsystem.a differ diff --git a/lib/multiboot.ppu b/lib/multiboot.ppu index dc309924..295c68fd 100644 Binary files a/lib/multiboot.ppu and b/lib/multiboot.ppu differ diff --git a/lib/stub.o b/lib/stub.o index 6790d76b..baeeceb5 100644 Binary files a/lib/stub.o and b/lib/stub.o differ diff --git a/lib/system.ppu b/lib/system.ppu index 1e8c73eb..9abd8d91 100644 Binary files a/lib/system.ppu and b/lib/system.ppu differ