From e3851d8832d2cf4c69da3cb3482acf61eda41726 Mon Sep 17 00:00:00 2001 From: Scott Rifenbark Date: Wed, 17 Apr 2013 11:38:09 -0700 Subject: kernel-dev: Edits to the "Changing the Configuration" section. This section had some problems. It failed to mention the need to extend FILESPATH by using FILESEXTRAPATHS. (From yocto-docs rev: e627cf21242a62fb23e93fdae61e8cfce32082a9) Signed-off-by: Scott Rifenbark Signed-off-by: Richard Purdie --- documentation/kernel-dev/kernel-dev-common.xml | 26 +++++++++++++++++++------- 1 file changed, 19 insertions(+), 7 deletions(-) (limited to 'documentation') diff --git a/documentation/kernel-dev/kernel-dev-common.xml b/documentation/kernel-dev/kernel-dev-common.xml index 102d96c587..f0e95aca07 100644 --- a/documentation/kernel-dev/kernel-dev-common.xml +++ b/documentation/kernel-dev/kernel-dev-common.xml @@ -149,20 +149,31 @@ You can make wholesale or incremental changes to the Linux kernel .config file by including a defconfig or by specifying - configuration fragments in the SRC_URI. + configuration fragments in the + SRC_URI. If you have a complete Linux kernel .config file you want to use, copy it to a directory named - files, which is in your - layer's recipes-kernel/linux directory - and name name the file "defconfig". - Then, add the following line to your linux-yocto + files, which must be in + your layer's recipes-kernel/linux + directory, and name the file "defconfig". + Then, add the following lines to your linux-yocto .bbappend file in your layer: + FILESEXTRAPATHS_prepend := "${THISDIR}/files:" SRC_URI += "file://defconfig" + The + SRC_URI tells the build system how to + search for the file, while the + FILESEXTRAPATHS + extends the + FILESPATH + variable (search directories) to include the + files directory you created for the + configuration changes. @@ -182,10 +193,11 @@ CONFIG_SERIAL_CORE=y CONFIG_SERIAL_CORE_CONSOLE=y - Next, include this configuration fragment in a - SRC_URI statement in your + Next, include this configuration fragment and extend the + FILESPATH variable in your .bbappend file: + FILESEXTRAPATHS_prepend := "${THISDIR}/files:" SRC_URI += "file://8250.cfg" The next time you run BitBake to build the Linux kernel, BitBake -- cgit v1.2.3-54-g00ecf