From 27a9c9d78832a4451a87cc39c68477b7e99bcc95 Mon Sep 17 00:00:00 2001 From: Scott Rifenbark Date: Tue, 7 Feb 2017 14:32:56 -0800 Subject: ref-manual: Expanded kernel task descriptions. Fixes [YOCTO #9376] Expanded many of the brief descriptions for the kernel-related tasks. (From yocto-docs rev: ee9e54aa9f148e5438cd9bdf7e55d7fa43cc3ec5) Signed-off-by: Scott Rifenbark Signed-off-by: Richard Purdie --- documentation/ref-manual/ref-tasks.xml | 152 ++++++++++++++++++++++++++------- 1 file changed, 120 insertions(+), 32 deletions(-) (limited to 'documentation') diff --git a/documentation/ref-manual/ref-tasks.xml b/documentation/ref-manual/ref-tasks.xml index e9859c1fa9..a3a41ebcc1 100644 --- a/documentation/ref-manual/ref-tasks.xml +++ b/documentation/ref-manual/ref-tasks.xml @@ -853,7 +853,10 @@ <filename>do_compile_kernelmodules</filename> - Compiles loadable modules for the Linux kernel. + Runs the step that builds the kernel modules (if needed). + Building a kernel consists of two steps: 1) the kernel + (vmlinux) is built, and 2) the modules + are built (i.e. make modules). @@ -861,9 +864,21 @@ <filename>do_diffconfig</filename> - Compares the old and new config files after running the - do_menuconfig - task for the kernel. + When invoked by the user, this task creates a file containing the + differences between the original config as produced by + do_kernel_configme + task and the changes made by the user with other methods + (i.e. using + (do_kernel_menuconfig). + Once the file of differences is created, it can be used to create + a config fragment that only contains the differences. + You can invoke this task from the command line as follows: + + $ bitbake linux-yocto -c diffconfig + + For more information, see the + "Generating Configuration Files" + section in the Yocto Project Linux Kernel Development Manual. @@ -871,7 +886,12 @@ <filename>do_kernel_checkout</filename> - Checks out source/meta branches for a linux-yocto style kernel. + Converts the newly unpacked kernel source into a form with which + the OpenEmbedded build system can work. + Because the kernel source can be fetched in several different ways, + the do_kernel_checkout task makes sure that + subsequent tasks are given a clean working tree copy of the kernel + with the correct branches checked out. @@ -879,7 +899,21 @@ <filename>do_kernel_configcheck</filename> - Validates the kernel configuration for a linux-yocto style kernel. + Validates the configuration produced by the + do_kernel_menuconfig + task. + The do_kernel_configcheck task produces + warnings when a requested configuration does not appear in the + final .config file or when you override a + policy configuration in a hardware configuration fragment. + You can run this task explicitly and view the output by using + the following command: + + $ bitbake linux-yocto -c kernel_configcheck -f + + For more information, see the + "Generating Configuration Files" + section in the Yocto Project Linux Kernel Development Manual. @@ -887,17 +921,41 @@ <filename>do_kernel_configme</filename> - Assembles the kernel configuration for a linux-yocto style kernel. + After the kernel is patched by the + do_patch + task, the do_kernel_configme task assembles + and merges all the kernel config fragments into a merged + configuration that can then be passed to the kernel configuration + phase proper. + This is also the time during which user-specified defconfigs + are applied if present, and where configuration modes such as + --allnoconfig are applied. - @@ -925,7 +991,17 @@ <filename>do_savedefconfig</filename> - Creates a minimal Linux kernel configuration file. + When invoked by the user, creates a defconfig file that can be + used instead of the default defconfig. + The saved defconfig contains the differences between the default + defconfig and the changes made by the user using other methods + (i.e. the + do_kernel_menuconfig + task. + You can invoke the task using the following command: + + $ bitbake linux-yocto -c savedefconfig + @@ -933,7 +1009,14 @@ <filename>do_shared_workdir</filename> - Creates the shared working directory for the kernel. + After the kernel has been compiled but before the kernel modules + have been compiled, this task copies files required for module + builds and which are generated from the kernel build into the + shared work directory. + With these copies successfully copied, the + do_compile_kernelmodules + task can successfully build the kernel modules in the next step + of the build. @@ -941,9 +1024,12 @@ <filename>do_sizecheck</filename> - Checks the size of the kernel image against - KERNEL_IMAGE_MAXSIZE - when set. + After the kernel has been built, this task checks the size of the + stripped kernel image against + KERNEL_IMAGE_MAXSIZE. + If that variable was set and the size of the stripped kernel + exceeds that size, the kernel build produces a warning to that + effect. @@ -951,15 +1037,13 @@ <filename>do_strip</filename> - Strips unneeded sections out of the Linux kernel image. - - - -
- <filename>do_uboot_mkimage</filename> - - - Creates a uImage file from the kernel for the U-Boot bootloader. + If + KERNEL_IMAGE_STRIP_EXTRA_SECTIONS is defined, + this task strips the sections named in that variable from + vmlinux. + This stripping is typically used to remove nonessential sections + such as .comment sections from a + size-sensitive configuration.
@@ -967,10 +1051,14 @@ <filename>do_validate_branches</filename> - Ensures that the source, metadata (or both) branches are on the - locations specified by their - SRCREV - values for a linux-yocto style kernel. + After the kernel is unpacked but before it is patched, this task + makes sure that the machine and metadata branches as specified + by the SRCREV + variables actually exist on the specified branches. + If these branches do not exist and + AUTOREV + is not being used, the do_validate_branches + task fails during the build. -- cgit v1.2.3-54-g00ecf