From 2f643ad571d11cd25521fef79a51798387ad1ebf Mon Sep 17 00:00:00 2001 From: João Henrique Ferreira de Freitas Date: Mon, 10 Mar 2014 18:07:51 -0600 Subject: 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 Signed-off-by: Richard Purdie --- documentation/kernel-dev/kernel-dev-common.xml | 25 +++++++++---------------- 1 file 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 @@ $ 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. -- cgit v1.2.3-54-g00ecf