6 lines
225 B
Bash
6 lines
225 B
Bash
|
#!/bin/bash
|
||
|
i386-elf-gcc -ffreestanding -c src/kernel/main.c -o main.o
|
||
|
nasm -f elf src/entrypoint.s -o entrypoint.o
|
||
|
i386-elf-ld -o kernel.bin -Ttext 0x1000 entrypoint.o main.o --oformat binary
|
||
|
cat mbr.bin kernel.bin > os.bin
|