binconfig class

The binconfig class is for packages that install -config scripts that provide information about the build settings for the package. It is usually provided by libraries and then used by other packages to determine various compiler options.

Since the script is used at build time it is required to be copied into the staging area. All the actions performed by the class are appended to the stage task.

The actions performed by the binconfig class are:

  1. Copies the -config script from the package into ${STAGING_BINDIR} directory;

  2. If the package is not native then it modifies the contents of the -config script in the staging area to ensure that all the paths in the script refer to the staging area;

  3. If the package is native then the-config script is renamed to -config-native to ensure that the native and non-native versions do not interfere with each other.

A package is considered to be native if it also inherits the native class.

The class will search in source directory, ${S}, and all it's subdirectories, for files that end in -config and process them as described above. All that is required to use the class is the addition of binconfig in an inherit statement:

inherit autotools binconfig