# Building the MOP3 kernel

This article describes, how to build the kernel, how the build system works and prerequisites.

## Preprequistes

- POSIX host system (tested on Linux, may break on other systems)
- Git
- GNU make
- LLVM toolchain/Clang C compiler
- Xorriso

## Build steps

cd into root of MOP3 source tree.

Run:
```
./aux/devel.sh
```

This script does everything for you - builds the kernel, userspace apps, necessary libraries and such.
The buildsystem is quite compilcated, so it probably requires it's own article.

For debugging you can do:
```
./aux/devel.sh debug
```

This will build with `buildtype=debug` as opposed to `buildtype=release`. You now can view symbols inside
of gdb or objdump.
