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 @@
$ bitbake linux-yocto -c kernel_configme -f
- Copy and rename the resulting
- .config file (e.g.
- config.orig).
- Run the menuconfig
command:
$ bitbake linux-yocto -c menuconfig
- Prepare a configuration fragment based on
- the differences between the two files.
-
+ Run the diffconfig
+ command to prepare a configuration fragment.
+ The resulting file fragment.cfg
+ will be placed in the
+ ${WORKDIR} directory:
+
+ $ bitbake linux-yocto -c diffconfig
+
- Ultimately, the configuration fragment file needs to be a
+ The diffconfig command creates a file that is a
list of Linux kernel CONFIG_ assignments.
- It cannot be in diff 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:
-
- $ diff -Nurp config.orig .config | sed -n "s/^\+//p" > frag.cfg
-
See the "Changing the Configuration"
section for information on how to use the output as a
configuration fragment.