- Install dependencies (see dependencies)
- Run
tools/compiler-setup.sh
- Compile with
cmake
from thebuild
directory
Install the necessary dependencies for your system. See dependencies for more information.
From the root directory of the project, run the following command:
./tools/compiler-setup.sh
This will download, patch, and compile the cross-compiler. The cross-compiler will be installed in the tools
directory.
Note
This will take a while, especially on slower machines.
Create the build directory and initialize cmake
:
mkdir build
cd build
cmake ..
This will generate the build files. Now you can compile the project with make
:
make
Additionnaly, you can just compile the kernel, initrd or iso with the following commands:
make kernel
make initrd
make iso
To run the kernel in QEMU, run the following command from the build directory:
make run
Optionally, QEMU can be run with debugging enabled using the following command:
make debug
This will start QEMU and wait for a debugger to connect to it. The provided vscode configuration can be used to connect to the debugger simply by pressing F5
.
TODO