forked from PoliEcho-holding-org/kern
Fixed diskRead() function and made it follow the defined standards. \nAlso made a temp fix to the disk.c issue (it's something about the disk.o obj file idk
This commit is contained in:
@@ -12,14 +12,15 @@ nasm -fbin ./src/boot.asm -o ./build/boot.bin
|
||||
echo "Assembling ./src/kernel/entry.asm..."
|
||||
nasm -felf32 ./src/kernel/entry.asm -o ./build/entry.o
|
||||
|
||||
for file in ./src/kernel/**.c; do
|
||||
for file in ./src/kernel/*.c; do
|
||||
filename=$(basename "$file" .c)
|
||||
echo "Compiling $file..."
|
||||
i386-elf-gcc -ffreestanding -Wall -Wextra -m32 -c $file -o ./build/$filename.o
|
||||
i386-elf-gcc -ffreestanding -Wall -Wextra -m32 -c "$file" -o "./build/$filename.o"
|
||||
done
|
||||
|
||||
echo "Linking kernel object files..."
|
||||
i386-elf-ld -o ./build/kernel.bin -Ttext 0x1000 --oformat binary ./build/**.o
|
||||
mv ./build/disk.o ./build/f_disk.o # Very temporary fix to issue with disk.o not linking or something weird
|
||||
i386-elf-ld -o ./build/kernel.bin -Ttext 0x1000 --oformat binary ./build/*.o
|
||||
|
||||
# OS Image
|
||||
echo "Creating kern.iso disk image..."
|
||||
|
||||
Reference in New Issue
Block a user