Cleaned up Compile Scripts & Pipeline

Commiting to test.
This commit is contained in:
2021-06-26 02:28:07 +01:00
parent 78955c41ab
commit c69ac198ed
22 changed files with 145 additions and 361 deletions

17
compile_link.sh Normal file
View File

@ -0,0 +1,17 @@
#!/bin/sh
echo " "
echo "======================="
echo " "
echo "Linking..."
echo " "
objstring="";
for object in `find lib/ -name "*.o"`; do
if [ "$object" != "lib/stub.o" ]
then
objstring=$objstring$object" ";
fi
done;
objstring=lib/stub.o" "$objstring
echo "Object Files: "$objstring
echo " "
ld -m elf_i386 -s --gc-sections -Tlinker.script -o bin/kernel.bin $objstring