-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuildbin
More file actions
executable file
·19 lines (12 loc) · 1.4 KB
/
Copy pathbuildbin
File metadata and controls
executable file
·19 lines (12 loc) · 1.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
nasm -f elf64 -I/home/nikhil/Desktop/asm/OS/arch/x86/ arch/x86/kernel.asm -o build/kernel.o
gcc -m64 -ffreestanding -fno-pie -fno-stack-protector -I include/ -nostdlib -c kernel/kernel.c -o build/kernelc.o
gcc -m64 -ffreestanding -fno-pie -fno-stack-protector -I include/ -nostdlib -c kernel/interrupt/interrupt_handler.c -o build/interrupt_handler.o
gcc -m64 -ffreestanding -fno-pie -fno-stack-protector -I include/ -nostdlib -c kernel/mm/paging.c -o build/paging.o
gcc -m64 -ffreestanding -fno-pie -fno-stack-protector -I include/ -nostdlib -c kernel/mm/frame.c -o build/frame.o
gcc -m64 -ffreestanding -fno-pie -fno-stack-protector -I include/ -nostdlib -c kernel/shell.c -o build/shell.o
gcc -m64 -ffreestanding -fno-pie -fno-stack-protector -I include/ -nostdlib -c kernel/syscall/syscalls.c -o build/syscalls.o
gcc -m64 -ffreestanding -fno-pie -fno-stack-protector -I include/ -nostdlib -c drivers/display/framebuffer.c -o build/framebuffer.o
gcc -m64 -ffreestanding -fno-pie -fno-stack-protector -I include/ -nostdlib -c kernel/console/console.c -o build/console.o
gcc -m64 -ffreestanding -fno-pie -fno-stack-protector -I include/ -nostdlib -c kernel/tty/tty.c -o build/tty.o
ld -m elf_x86_64 -nostdlib --oformat binary -Ttext 0x100000 build/kernel.o build/kernelc.o build/paging.o build/frame.o build/framebuffer.o build/console.o build/tty.o build/interrupt_handler.o -o uefiboot/EFI/BOOT/kernel.bin
echo done