Cleaned up Compile Scripts & Pipeline
Commiting to test.
This commit is contained in:
17
compile_link.sh
Normal file
17
compile_link.sh
Normal 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
|
Reference in New Issue
Block a user