aboutsummaryrefslogtreecommitdiffstats
path: root/documentation/kernel-dev
diff options
context:
space:
mode:
authorJoão Henrique Ferreira de Freitas <joaohf@gmail.com>2014-03-10 18:07:51 -0600
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-03-25 12:29:38 +0000
commit2f643ad571d11cd25521fef79a51798387ad1ebf (patch)
tree6f0920fdb16ded4aad64834fba9f1e8508c456dc /documentation/kernel-dev
parenta41113c94f1e959c15a21b1ed40c44cfcca0338f (diff)
downloadopenembedded-core-contrib-2f643ad571d11cd25521fef79a51798387ad1ebf.tar.gz
kernel-dev: New step to "Generating Configuration Files" section.
Add a new step about how to use diffconfig task to create kernel config fragments. Scott fixed some grammar in one of the sentences after applying the patch. (From yocto-docs rev: 5b7ccdbf708cbeebc2d8dc91db129fb35aabdcdd) Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'documentation/kernel-dev')
-rw-r--r--documentation/kernel-dev/kernel-dev-common.xml25
1 files changed, 9 insertions, 16 deletions
diff --git a/documentation/kernel-dev/kernel-dev-common.xml b/documentation/kernel-dev/kernel-dev-common.xml
index a152f9fbbe..f73f981ce8 100644
--- a/documentation/kernel-dev/kernel-dev-common.xml
+++ b/documentation/kernel-dev/kernel-dev-common.xml
@@ -342,32 +342,25 @@
<literallayout class='monospaced'>
$ bitbake linux-yocto -c kernel_configme -f
</literallayout></para></listitem>
- <listitem><para>Copy and rename the resulting
- <filename>.config</filename> file (e.g.
- <filename>config.orig</filename>).
- </para></listitem>
<listitem><para>Run the <filename>menuconfig</filename>
command:
<literallayout class='monospaced'>
$ bitbake linux-yocto -c menuconfig
</literallayout></para></listitem>
- <listitem><para>Prepare a configuration fragment based on
- the differences between the two files.
- </para></listitem>
+ <listitem><para>Run the <filename>diffconfig</filename>
+ command to prepare a configuration fragment.
+ The resulting file <filename>fragment.cfg</filename>
+ will be placed in the
+ <filename>${</filename><ulink url='&YOCTO_DOCS_REF_URL;#var-WORKDIR'><filename>WORKDIR</filename></ulink><filename>}</filename> directory:
+ <literallayout class='monospaced'>
+ $ bitbake linux-yocto -c diffconfig
+ </literallayout></para></listitem>
</orderedlist>
</para>
<para>
- Ultimately, the configuration fragment file needs to be a
+ The <filename>diffconfig</filename> command creates a file that is a
list of Linux kernel <filename>CONFIG_</filename> assignments.
- It cannot be in <filename>diff</filename> format.
- Here is an example of a command that creates your
- configuration fragment file.
- Regardless of the exact command you use, plan on reviewing
- the output as you can usually remove some of the defaults:
- <literallayout class='monospaced'>
- $ diff -Nurp config.orig .config | sed -n "s/^\+//p" > frag.cfg
- </literallayout>
See the "<link linkend='changing-the-configuration'>Changing the Configuration</link>"
section for information on how to use the output as a
configuration fragment.