buildtype

Name

buildtype  --  set default buildtype target

Synopsis

buildtype {buildtype} [librev=revision] [libroot=url] [libdest=directory]

Description

buildtype sets buildtype target that will be added to the everything target in output(3). The name of the buildtype will be the name of a directory in target/, below which all files will be installed during the install phase of the build process.

Running "make axishelp" in a fetched source package will show all known buildtypes.

If librev is present a sub(3) will be added automatically if the C-library needs to be fetched and built.

Options

libdest=directory

The destination directory of the C-library to fetch.

librev=revision

The revision of the C-library to fetch.

libroot=url

The repository root of the C-library package to fetch.

Caveats

When specifying a build type that implies using glibc (e.g. cris-axis-linux-gnu), glibc will be used from its cris-dist installation directory. I.e. glibc must be built as a part of the cris-dist installation procedure if cris-dist was installed from source code. Binary packages of cris-dist, however, contains a prebuilt glibc.

The commands of the buildtype targets of the packages' makefiles will be executed when doing a top-level make (everything). So if you add a new package to your local tree, you must either issue a new top-level make (tedious) or do a "make buildtype" manually within that package. Otherwise the package will be built for host and installed in the target/host directory.

Examples

Use cris-axis-linux-gnu as build type (and thus glibc from cris-dist):

    buildtype cris-axis-linux-gnu
    

Use cris-axis-linux-gnuuclibc as build type and uClibc 0.9.20:

    buildtype cris-axis-linux-gnuuclibc librev=IR0_9_20-3
    

See Also

repository_root(3), sub(3)