Skip to content

Commit

Permalink
Rename files from 'KernelOS' to 'KernelOS-i386'
Browse files Browse the repository at this point in the history
  • Loading branch information
Minionguyjpro committed Oct 22, 2023
1 parent 6081138 commit 80fb9a7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ as --32 ./src/boot.s -o ./src/boot.o
gcc -m32 -c ./src/kernel.c -o ./src/kernel.o -std=gnu99 -ffreestanding -O2 -Wall -Wextra

#linking the kernel with kernel.o and boot.o files
ld -m elf_i386 -T ./src/linker.ld ./src/kernel.o ./src/boot.o -o ./src/KernelOS.bin -nostdlib
ld -m elf_i386 -T ./src/linker.ld ./src/kernel.o ./src/boot.o -o ./src/KernelOS-i386.bin -nostdlib

#check MyOS.bin file is x86 multiboot file or not
grub-file --is-x86-multiboot ./src/KernelOS.bin
grub-file --is-x86-multiboot ./src/KernelOS-i386.bin

#building the iso file
mkdir -p isodir/boot/grub
cp ./src/KernelOS.bin isodir/boot/KernelOS.bin
cp ./src/KernelOS-i386.bin isodir/boot/KernelOS-i386.bin
cp ./src/grub.cfg isodir/boot/grub/grub.cfg
mkdir -p build
grub-mkrescue -o ./build/KernelOS.iso isodir
grub-mkrescue -o ./build/KernelOS-i386.iso isodir

0 comments on commit 80fb9a7

Please sign in to comment.