Targets
From RockWiki
Targets
A ROCK Linux target is a distribution based on ROCK Linux. It can alter the package selection, force some special configuration to be used, supply additional patches to each package, modify any build aspect of a package and more.
The most important file of a target is the 'preconfig.in' file where the
target needs to register itself via:
CFGTEMP_TARGETLIST="$CFGTEMP_TARGETLIST target_name Long_Visible_Name"
When a target is selected the file 'config.in' is evaluated. Here options
can be forced to be set/unset and new options can be introduced.
The file build.sh is executed for the build of the target. If the target is
a straight-forward build only the ROCK Linux auto-build-system needs to be
called:
pkgloop
or to also generate some database files for the install-cd the generic
build.sh can be reused:
. target/generic/build.sh
A target specific .conf file or patch for a package may easily be added
by placing it under the name pkg_$pkg.conf or pkg_$pkg.patch in the target's
directory. Where $pkg is the name of the respective package.
Some packages might have target specific hooks, like the linux* package which
uses a kernel.conf.sh in the target's directory to perform additional config
work on the kernel's .config file.
