mirror of
https://github.com/BoredDevNL/BoredOS.git
synced 2026-05-15 18:58:40 +00:00
1 KiB
1 KiB
Build Toolchain
BoredOS is built cross-compiled from a host system (such as macOS or Linux) to target the generic x86_64-elf platform.
Prerequisites
To build BoredOS, you need the following tools:
-
x86_64 ELF GCC Cross-Compiler:
x86_64-elf-gcc: The C compiler targeting the freestanding overarching ELF environment.x86_64-elf-ld: The linker to combine object files into the finalboredos.elfkernel binary and userland variables.
-
NASM:
- Required to compile the
.asmfiles insrc/arch/andsrc/userland/crt0.asm. It formats the output aself64objects to be linked alongside the C code.
- Required to compile the
-
xorriso:
- A specialized tool to create ISO 9660 filesystem images.
- Why?
xorrisopackages the compiled kernel, Limine bootloader, and asset files (fonts, images, userland binaries) into the final bootableboredos.isoCD-ROM image.
-
QEMU (Optional but highly recommended for testing):
qemu-system-x86_64is used to virtualize the OS for testing or to mess around.