From 76f1ffe77a4646df01f67010f89ea4b5cd166e0c Mon Sep 17 00:00:00 2001 From: scott-lenovo Date: Tue, 8 Jan 2013 09:21:49 -0800 Subject: kernel-dev: Edits to the "Configuration" section. First real re-write of this original text. (From yocto-docs rev: a6d16b61057df8ed811cf1f5f27c5f9e08be1108) Signed-off-by: scott-lenovo Signed-off-by: Richard Purdie --- documentation/kernel-dev/kernel-dev-advanced.xml | 33 ++++++++++++++---------- 1 file changed, 19 insertions(+), 14 deletions(-) (limited to 'documentation') diff --git a/documentation/kernel-dev/kernel-dev-advanced.xml b/documentation/kernel-dev/kernel-dev-advanced.xml index c069ddfb08..7d82b54f65 100644 --- a/documentation/kernel-dev/kernel-dev-advanced.xml +++ b/documentation/kernel-dev/kernel-dev-advanced.xml @@ -699,14 +699,17 @@ 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 simplest unit of kernel Metadata is the configuration-only + feature. + This feature consists of one or more Linux kernel configuration + parameters in a configuration fragment file + (.cfg) and an .scc file + that describes the fragment. - The SMP fragment included in the linux-yocto-3.4 Git repository + The Symmetric Multi-Processing (SMP) fragment included in the + linux-yocto-3.4 Git repository consists of the following two files: cfg/smp.scc: @@ -718,7 +721,7 @@ meta/cfg/kernel-cache/ if you are creating meta-data in-tree (see 3.2.2). CONFIG_SCHED_SMT=y You can find information on configuration fragment files in the - "Creating Configuration Fragments" + "Creating Configuration Fragments" section of the Yocto Project Development Manual and in the "Generating Configuration Files" section earlier in this manual. @@ -726,31 +729,33 @@ meta/cfg/kernel-cache/ if you are creating meta-data in-tree (see 3.2.2). 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). + description of the fragment. + Higher level kernel tools use this description. The kconf command is used to include the - actual configuration fragment in an scc + 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". + which would use the "non-hardware" keyword. The distinction is made for the benefit of the configuration - validation tools, which will warn you if a hardware fragment + validation tools, which warn you if a hardware fragment overrides a policy set by a non-hardware fragment. + + The description file can include multiple + kconf statements, one per fragment. + As described in the "Generating Configuration Files" - section, the following BitBake command can be used to audit your + section, you can use the following BitBake command 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