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}.