Compiling the kernel
Cloning the repository
Section titled “Cloning the repository”Menix has external submodules as dependencies, to initialize them either run:
git clone https://github.com/menix-os/menix --recurse-submodulesor if you’ve already cloned the repository:
git submodule update --init --recursiveBuilding the kernel
Section titled “Building the kernel”To build the kernel you will need:
- cargo
- rustc
- clang (Used for bindgen)
- lld
Make sure you have a full nightly toolchain installed,
including the rust-src component.
The following commmand will build the kernel and all drivers for x86_64:
cargo +nightly build --release --target toolchain/x86_64-kernel.json