TSOS/build.sh

7 lines
257 B
Bash
Raw Normal View History

2022-11-16 15:37:01 +01:00
#!/bin/bash
2022-11-16 20:24:23 +01:00
i386-elf-gcc -ffreestanding -c src/kernel/main.c -o kernel.o
nasm -f elf src/entrypoint.s -o entry.o
nasm -f bin src/boot/mbr.s -o mbr.bin
i386-elf-ld -o kernel.bin -Ttext 0x1000 entry.o kernel.o --oformat binary
2022-11-16 15:37:01 +01:00
cat mbr.bin kernel.bin > os.bin