L4Re Operating System Framework
Interface and Usage Documentation
|
L4Re uses a custom make-based build system, often simply referred to as BID.
This section explains how to use BID when writing applications and libraries for L4Re.
L4Re must be built out-of-source. Therefore the first mandatory step is creating and populating a build directory. From the root of the L4Re source tree run
make B=<builddir>
Other targets that can be executed in the source directory are
Once the build directory is set up, BID make can be invoked in one of two ways:
make O=<builddir> ...
.The default target builds the source (as you would expect), other targets that are available in build mode are
make cleanfast
but can be used on selected packages. Use S=...
to select the target package.In addition to these targets, there are a number of targets to generate images which are explained elsewhere.
The BID build system exports different roles that define what should be done in the subdirectory. So a BID make file essentially consists of defining the role and a number of role-dependent make variables. The basic layout should look like this:
PKGDIR
in the first line defines the root directory of the current package. L4DIR
in the next line must be pointed to the root of the L4Re source tree the package should be built against. After this custom variable definitions for the role follow. In the final line of the file, the make file with the role-specific rules must be sourced.
The following roles are currently defined:
This section lists variables that configure how the BID build system behaves. They are applicable for all roles.
Variable | Description |
---|---|
CC | C compiler for target |
CXX | C++ compiler for target |
HOST_CC | C compiler for host |
HOST_CXX | C++ compiler for host |