From 7fde327c8560e2af13b9bfe17672c93bddd190c7 Mon Sep 17 00:00:00 2001 From: Scott Rifenbark Date: Mon, 6 Jun 2016 13:25:18 -0700 Subject: kernel-dev: Fix the locations of .config and source directory The locations of the kernel .config file and source direcotry moved a couple releases ago. Updated the documentation accordingly. Also added a note explaining how to check the expansion of variables, which servs a couple of purposes: * For curious readers, shows them how to understand where these variables come from and how they are used. * For suspicious readers, shows them how they can verify that the variables in the documentation are actually correct. Author: Tom Zanussi (From yocto-docs rev: af3613b6178122b9e5452529a087143b3fe98495) Signed-off-by: Scott Rifenbark Signed-off-by: Richard Purdie --- documentation/kernel-dev/kernel-dev-common.xml | 27 +++++++++++++++++++++----- 1 file changed, 22 insertions(+), 5 deletions(-) diff --git a/documentation/kernel-dev/kernel-dev-common.xml b/documentation/kernel-dev/kernel-dev-common.xml index ab7f80fbe4..3d874aa92a 100644 --- a/documentation/kernel-dev/kernel-dev-common.xml +++ b/documentation/kernel-dev/kernel-dev-common.xml @@ -383,9 +383,10 @@ The resulting .config file is - located in - ${WORKDIR} under the - linux-${PACKAGE_ARCH}-${LINUX_KERNEL_TYPE}-build directory. + located in the build directory, + ${B}, + which expands to + ${WORKDIR}/linux-${PACKAGE_ARCH}-${LINUX_KERNEL_TYPE}-build. You can use the entire .config file as the defconfig file as described in the "Changing the Configuration" section. @@ -393,6 +394,16 @@ see the "Using menuconfig" section in the Yocto Project Development Manual. + + You can determine what a variable expands to by looking + at the output of the bitbake -e + command: + + $ bitbake -e virtual/kernel + + Search the output for the variable in which you are + interested to see exactly how it is expanded and used. + @@ -511,8 +522,14 @@ Taking this step ensures you have the sources prepared and the configuration completed. - You can find the sources in the - ${WORKDIR}/linux directory. + You can find the sources in the build directory within the + source/ directory, which is a symlink + (i.e. ${B}/source). + The source/ directory expands to + ${WORKDIR}/linux-${PACKAGE_ARCH}-${LINUX_KERNEL_TYPE}-build/source. + The directory pointed to by the + source/ symlink is also known as + ${STAGING_KERNEL_DIR}. -- cgit v1.2.3-54-g00ecf