Adding a new OS port
As mlibc has been designed with portability in mind, adding a new port is a straightfoward process:
- Make sure your kernel has the prerequisites needed.
- Begin implementing the sysdeps to get access to mlibc headers.
- Build the toolchain for your OS.
- Finish implementing the sysdeps.
- Take a look at what to do next.
Make sure you have a directory for your operating system's sysroot and to store your toolchain. These will be referenced in code when needed as $SYSROOT_DIR and $TOOLCHAIN_DIR respectively.
The sysroot dir is where libraries and includes compiled for your OS will go. It is bascially a copy of your OS's root filesystem, and your compiler will look into it for libraries and header files when cross-compiling.
The toolchain dir will be where the cross-compilers will be installed.