From 9c75c64cb99a3d5103b7bb4e2a700e5bb5af516b 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: a4f92870e70cb625f2987a59aff3f460457b4889) 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(-) (limited to 'documentation') diff --git a/documentation/kernel-dev/kernel-dev-common.xml b/documentation/kernel-dev/kernel-dev-common.xml index 261471c46b..a9aafd3c21 100644 --- a/documentation/kernel-dev/kernel-dev-common.xml +++ b/documentation/kernel-dev/kernel-dev-common.xml @@ -384,9 +384,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. @@ -394,6 +395,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. + @@ -512,8 +523,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 1.2.3-korg