File structure refactor

pull/20/head
E. Almqvist 3 years ago
parent ddd2287711
commit aa38917ca8
  1. 4
      compile.sh
  2. 0
      src/bootloader/bios.asm
  3. 0
      src/bootloader/bios/convert.asm
  4. 0
      src/bootloader/bios/disk.asm
  5. 0
      src/bootloader/bios/print.asm
  6. 0
      src/bootloader/bootloader.asm
  7. 0
      src/bootloader/equ/ascii.asm
  8. 0
      src/bootloader/equ/bios.asm
  9. 0
      src/bootloader/equ/vga.asm
  10. 0
      src/bootloader/pm.asm
  11. 0
      src/bootloader/pm/gdt.asm
  12. 0
      src/bootloader/pm/vga/print.asm
  13. 0
      src/kernel/kernel.c
  14. 0
      src/kernel/lib/vga.c

@ -7,10 +7,10 @@ srcDir=src
binDir=bin binDir=bin
echo "Compiling bootloader... " echo "Compiling bootloader... "
nasm -f bin $srcDir/bootloader.asm -i $srcDir -o $binDir/bootloader.bin nasm -f bin $srcDir/bootloader/bootloader.asm -i $srcDir/bootloader -o $binDir/bootloader.bin
echo "Compiling kernel... " echo "Compiling kernel... "
gcc -fno-pie -m32 -Os -ffreestanding -c $srcDir/kernel.c -o $binDir/kernel.o && gcc -o $binDir/kernel.bin $binDir/kernel.o -Wl,--oformat=binary -ffreestanding -nostdlib -shared -Ttext 0x1000 -m32 gcc -fno-pie -m32 -Os -ffreestanding -c $srcDir/kernel/kernel.c -o $binDir/kernel.o && gcc -o $binDir/kernel.bin $binDir/kernel.o -Wl,--oformat=binary -ffreestanding -nostdlib -shared -Ttext 0x1000 -m32
echo "Creating OS image... " echo "Creating OS image... "
cat $binDir/bootloader.bin $binDir/kernel.bin > $binDir/os-image cat $binDir/bootloader.bin $binDir/kernel.bin > $binDir/os-image

Loading…
Cancel
Save