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