This repository was archived by the owner on Dec 21, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcomp.sh
More file actions
executable file
·26 lines (22 loc) · 2.34 KB
/
Copy pathcomp.sh
File metadata and controls
executable file
·26 lines (22 loc) · 2.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
mkdir -p debug
nasm -f elf32 src/boot.asm -o debug/boot.o
i686-elf-gcc -w -c src/kernel.c -o debug/kernel.o -std=gnu99 -m32 -ffreestanding -masm=intel -O2 -Wall -Wextra
i686-elf-gcc -w -c src/common.c -o debug/common.o -std=gnu99 -m32 -ffreestanding -masm=intel -O2 -Wall -Wextra
i686-elf-gcc -w -c src/Drivers/keyboard.c -o debug/keyboard.o -m32 -std=gnu99 -ffreestanding -masm=intel -O2 -Wall -Wextra
i686-elf-gcc -w -c src/Drivers/VGA.c -o debug/VGA.o -std=gnu99 -m32 -ffreestanding -masm=intel -O2 -Wall -Wextra
i686-elf-gcc -w -c src/Drivers/irq.c -o debug/irq.o -std=gnu99 -m32 -ffreestanding -masm=intel -O2 -Wall -Wextra
i686-elf-gcc -w -c src/Drivers/isrs.c -o debug/isrs.o -std=gnu99 -m32 -ffreestanding -masm=intel -O2 -Wall -Wextra
i686-elf-gcc -w -c src/Drivers/gdt.c -o debug/gdt.o -std=gnu99 -m32 -ffreestanding -masm=intel -O2 -Wall -Wextra
i686-elf-gcc -w -c src/Drivers/timer.c -o debug/timer.o -std=gnu99 -m32 -ffreestanding -masm=intel -O2 -Wall -Wextra
i686-elf-gcc -w -c src/Drivers/idt.c -o debug/idt.o -std=gnu99 -m32 -ffreestanding -masm=intel -O2 -Wall -Wextra
i686-elf-gcc -w -c src/Drivers/sound.c -o debug/sound.o -std=gnu99 -m32 -ffreestanding -masm=intel -O2 -Wall -Wextra
i686-elf-gcc -w -c src/Drivers/acpi.c -o debug/acpi.o -std=gnu99 -m32 -ffreestanding -masm=intel -O2 -Wall -Wextra
i686-elf-gcc -w -c src/Drivers/mouse.c -o debug/mouse.o -std=gnu99 -m32 -ffreestanding -masm=intel -O2 -Wall -Wextra
i686-elf-gcc -w -c src/Drivers/rtc.c -o debug/rtc.o -std=gnu99 -m32 -ffreestanding -masm=intel -O2 -Wall -Wextra
i686-elf-gcc -w -c src/Drivers/tui.c -o debug/tui.o -std=gnu99 -m32 -ffreestanding -masm=intel -O2 -Wall -Wextra
i686-elf-gcc -w -c src/Drivers/videomode.c -o debug/videomode.o -std=gnu99 -m32 -ffreestanding -masm=intel -O2 -Wall -Wextra
i686-elf-gcc -w -c src/Games/cookieclk.c -o debug/cookieclk.o -std=gnu99 -m32 -ffreestanding -masm=intel -O2 -Wall -Wextra
i686-elf-gcc -w -c src/Games/paint.c -o debug/paint.o -std=gnu99 -m32 -ffreestanding -masm=intel -O2 -Wall -Wextra
i686-elf-ld -T src/linker.ld -o debug/kernel.elf debug/boot.o debug/kernel.o debug/irq.o debug/idt.o debug/timer.o debug/gdt.o debug/isrs.o debug/common.o debug/keyboard.o debug/VGA.o debug/sound.o debug/acpi.o debug/mouse.o debug/rtc.o debug/tui.o debug/videomode.o debug/cookieclk.o debug/paint.o
sh makegrub.sh
qemu-system-i386 BirbOS.iso -serial file:serial.log