From bbd4bfc06163398deb66720b50c5d6ec36885051 Mon Sep 17 00:00:00 2001 From: Scott Rifenbark Date: Mon, 18 May 2015 16:31:42 -0600 Subject: kernel-dev: Added new "in-tree" defconfig file section. I added the new section "Using an "In-Tree" defconfig File" section. This section addresses the ability to not use the default location for defconfig files, which is usually in the metadata layer. The section describes how to use the KBUILD_DEFCONFIG variable. Fixes [YOCTO #7474] (From yocto-docs rev: f514c8b96ef991f5893c73ae06392eb306c12a5e) Signed-off-by: Scott Rifenbark Signed-off-by: Richard Purdie --- documentation/kernel-dev/kernel-dev-common.xml | 59 ++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) diff --git a/documentation/kernel-dev/kernel-dev-common.xml b/documentation/kernel-dev/kernel-dev-common.xml index c0acac8316..618d60cbaf 100644 --- a/documentation/kernel-dev/kernel-dev-common.xml +++ b/documentation/kernel-dev/kernel-dev-common.xml @@ -238,6 +238,65 @@ section in the Yocto Project Development Manual. + +
+ Using an "In-Tree"  <filename>defconfig</filename> File + + + It might be desirable to have kernel configuration fragment + support through a defconfig file that + is pulled from the kernel source tree for the configured + machine. + By default, the OpenEmbedded build system looks for + defconfig files in the layer used for + Metadata, which is "out-of-tree", and then configures them + using the following: + + SRC_URI += "file://defconfig" + + If you do not want to maintain copies of + defconfig files in your layer but would + rather allow users to use the default configuration from the + kernel tree and still be able to add configuration fragments + to the + SRC_URI + through, for example, append files, you can direct the + OpenEmbedded build system to use a + defconfig file that is "in-tree". + + + + To specify an "in-tree" defconfig file, + edit the recipe that builds your kernel so that it has the + following command form: + + KBUILD_DEFCONFIG_KMACHINE ?= defconfig_file + + You need to append the variable with + KMACHINE and then supply the path to + your "in-tree" defconfig file. + + + + Aside from modifying your kernel recipe and providing your own + defconfig file, you need to be sure no + files or statements set SRC_URI to use a + defconfig other than your "in-tree" + file (e.g. a kernel's linux-machine.inc + file). + In other words, if the build system detects a statement + that identifies an "out-of-tree" + defconfig file, that statement + will override your + KBUILD_DEFCONFIG variable. + + + + See the + KBUILD_DEFCONFIG + variable description for more information. + +
-- cgit v1.2.3-54-g00ecf