From cc07a5e350aaf622d8f1ea87fa29c32d03288112 Mon Sep 17 00:00:00 2001 From: Scott Rifenbark Date: Thu, 27 Dec 2012 12:15:08 -0600 Subject: kernel-dev: Formatted the "Configuration" section. (From yocto-docs rev: 2b3be91ffdc6c27306f381cf083f4b3e805c2d38) Signed-off-by: Scott Rifenbark Signed-off-by: Richard Purdie --- documentation/kernel-dev/kernel-dev-advanced.xml | 98 ++++++++++++++++++++++++ 1 file changed, 98 insertions(+) (limited to 'documentation') diff --git a/documentation/kernel-dev/kernel-dev-advanced.xml b/documentation/kernel-dev/kernel-dev-advanced.xml index 768b66450b..8a036a7d2d 100644 --- a/documentation/kernel-dev/kernel-dev-advanced.xml +++ b/documentation/kernel-dev/kernel-dev-advanced.xml @@ -664,6 +664,104 @@ meta/cfg/kernel-cache/ if you are creating meta-data in-tree (see 3.2.2). +
+ Configuration + + + The simplest unit of metadata is the configuration-only feature. + It consists of one or more Linux kernel configuration parameters + in a configuration fragment file (.cfg) + and an scc file describing the fragment. + + + + The SMP fragment included in the linux-yocto-3.4 Git repository + consists of the following two files: + + cfg/smp.scc: + define KFEATURE_DESCRIPTION "Enable SMP" + kconf hardware smp.cfg + + cfg/smp.cfg: + CONFIG_SMP=y + CONFIG_SCHED_SMT=y + + You can find information on configuration fragment files in the + "Creating Configuration Fragments" + section of the Yocto Project Development Manual and in + the "Generating Configuration Files" + section earlier in this manual. + + + + KFEATURE_DESCRIPTION provides a short + description of the fragment, the primary use is for higher level + tooling, such as the Yocto Project BSP Tools (TODO:Citation). + + + + The kconf command is used to include the + actual configuration fragment in an scc + file, and the "hardware" keyword identifies the fragment as + being hardware enabling, as opposed to general policy, + which would use the keyword "non-hardware". + The distinction is made for the benefit of the configuration + validation tools, which will warn you if a hardware fragment + overrides a policy set by a non-hardware fragment. + + + + As described in the + "Generating Configuration Files" + section, the following BitBake command can be used to audit your + configuration: + + $ bitbake linux-yocto -c kernel_configcheck -f + + The description file can include multiple kconf + statements, one per fragment. + + + + Original text: + +The simplest unit of meta-data is the configuration-only feature. It consists of +one or more Linux kernel configuration parameters in a .cfg file (as described +in section XYZ) and an scc file describing the fragment. The SMP fragment +included in the linux-yocto-3.4 git repository consists of the following two +files: + +cfg/smp.scc: + define KFEATURE_DESCRIPTION "Enable SMP" + kconf hardware smp.cfg + +cfg/smp.cfg: + CONFIG_SMP=y + CONFIG_SCHED_SMT=y + +See 2.3.1 for details on creating configuration fragments. + +KFEATURE_DESCRIPTION provides a short description of the fragment, the +primary use is for higher level tooling, such as the Yocto Project BSP Tools +(TODO:Citation). + +The "kconf" command is used to include the actual configuration fragment in an +scc file, and the "hardware" keyword identifies the fragment as being hardware +enabling, as opposed to general policy (which would use the keyword +"non-hardware"). The distinction is made for the benefit of the configuration +validation tools which will warn you if a hardware fragment overrides a policy +set by a non-hardware fragment. + +As described in 2.3.1, the following bitbake command can be used to audit your +configuration: + + $ bitbake linux-yocto -c kernel_configcheck -f + +The description file can include multiple kconf statements, one per fragment. + + +
+ -- cgit v1.2.3-54-g00ecf