ChorusOS 4.0 Production Guide

The mkmk Build Process

The mkmk tool enables you to select a set of files from the source tree, in order to build an operating system for a particular target system. The mkmk tool also provides specific build rules which manage the system configuration through tunables, parameters, and features options.

The mkmk build process can be divided into five steps:

  1. Create a link to the source files in the build directory. This operation is called merging and uses the mkmerge utility. The links you have created enable mkmk to locate your source files in <src_dir>.

  2. Build the Makefiles in the component's build directory, using mkmk.

  3. Build the binary files.

  4. Create the dependency files that are used for further builds by the makedepend and getexport utilities.

  5. Build the system images with the mkimage command. This phase is described in more detail in the ChorusOS 4.0 Porting Guide.