From 095ee0a7040117af3bb9d3897040150fff240119 Mon Sep 17 00:00:00 2001 From: Scott Rifenbark Date: Fri, 11 Jan 2013 15:45:45 -0800 Subject: kernel-dev: Edits to "Modifying a Recipe" section. Edits added a couple cross-refenences back into the YP dev-manual where detailed examples of patching and configuring the kernel exist. (From yocto-docs rev: 1ae2a18f0367841d1ea9bb8d3f3d323a9b573533) Signed-off-by: Scott Rifenbark Signed-off-by: Richard Purdie --- documentation/kernel-dev/kernel-dev-common.xml | 44 +++++++------------------- 1 file changed, 12 insertions(+), 32 deletions(-) (limited to 'documentation') diff --git a/documentation/kernel-dev/kernel-dev-common.xml b/documentation/kernel-dev/kernel-dev-common.xml index 688e12ac9a..33b834729e 100644 --- a/documentation/kernel-dev/kernel-dev-common.xml +++ b/documentation/kernel-dev/kernel-dev-common.xml @@ -130,6 +130,12 @@ detects the change in the recipe and fetches and applies the patches before building the kernel. + + + For a detailed example showing how to patch the kernel, see the + "Patching the Kernel" + section in the Yocto Project Development Manual. +
@@ -156,7 +162,8 @@ Generally speaking, the preferred approach is to determine the - incremental change you want to make and add that as a fragment. + incremental change you want to make and add that as a + configuration fragment. For example, if you want to add support for a basic serial console, create a file named 8250.cfg in the ${FILES} directory with the following @@ -182,37 +189,10 @@ - Original Text: - -Making wholesale or incremental changes to the Linux kernel config can be made -by including a defconfig or configuration fragments in the SRC_URI. - -If you have a complete Linux kernel .config file you want to use, copy it as -"defconfig" to the ${FILES} directory and add the following line to your -linux-yocto bbappend file in your layer: - - SRC_URI += "file://defconfig" - -Generally speaking, the preferred approach is to determine the incremental -change you want to make and add that as a fragment. For example, if you wanted -to add support for a basic serial console, create a file named "8250.cfg" in the -${FILES} directory with the following content (without indentation): - - CONFIG_SERIAL_8250=y - CONFIG_SERIAL_8250_CONSOLE=y - CONFIG_SERIAL_8250_PCI=y - CONFIG_SERIAL_8250_NR_UARTS=4 - CONFIG_SERIAL_8250_RUNTIME_UARTS=4 - CONFIG_SERIAL_CORE=y - CONFIG_SERIAL_CORE_CONSOLE=y - -Then include this configuration fragment in the SRC_URI: - - SRC_URI += "file://8250.cfg" - -At the next build, bitbake will detect the change in the recipe and fetch and -apply the new configuration before rebuilding the Linux kernel. - + For a detailed example showing how to configure the kernel, + see the + "Configuring the Kernel" + section in the Yocto Project Development Manual.
-- cgit v1.2.3-54-g00ecf