From f3dc906650033be3a05e701321700ff19829bb7a Mon Sep 17 00:00:00 2001 From: Scott Rifenbark Date: Fri, 9 May 2014 17:33:41 +0300 Subject: [PATCH] ref-manual: Added more detail to the tasks chapter. I made sure all formatting was correct and also applied some cross-referencing for the reader where appropriate. (From yocto-docs rev: aea5cab493107b2458ecd3bde719115c3f4e02b4) Signed-off-by: Scott Rifenbark Signed-off-by: Richard Purdie --- documentation/ref-manual/ref-tasks.xml | 131 ++++++++++++++++++------- 1 file changed, 98 insertions(+), 33 deletions(-) diff --git a/documentation/ref-manual/ref-tasks.xml b/documentation/ref-manual/ref-tasks.xml index 8f62da02f0..5bff93b1c5 100644 --- a/documentation/ref-manual/ref-tasks.xml +++ b/documentation/ref-manual/ref-tasks.xml @@ -25,8 +25,9 @@ <filename>do_build</filename> - Default task for a recipe - depends on all other normal tasks - required to 'build' a recipe. + The default task for all recipes. + This task depends on all other normal tasks + required to build a recipe. @@ -34,7 +35,9 @@ <filename>do_compile</filename> - Compiles the source in the compilation directory. + Compiles the source in the compilation directory, which is pointed + to by the + B variable. @@ -69,7 +72,10 @@ <filename>do_deploy</filename> - Writes deployable output files to the deploy directory. + Writes output files that are to be deployed to the deploy + directory, which is defined by the + DEPLOYDIR + variable. @@ -78,6 +84,12 @@ Fetches the source code. + This task uses the + SRC_URI + variable and the argument's prefix to determine the correct + fetcher module. + Unpacked source files reside in the + S directory. @@ -85,7 +97,11 @@ <filename>do_install</filename> - Copies files from the compilation directory to a holding area. + Copies files from the compilation directory, which is defined by + the + B variable, + to a holding area defined by the + D variable. @@ -111,7 +127,9 @@ <filename>do_package_index</filename> - Creates or updates the index in the Package Feed area. + Creates or updates the index in the + Package Feeds + area. @@ -119,7 +137,8 @@ <filename>do_package_write_deb</filename> - Creates the actual DEB packages and places them in the Package Feed + Creates the actual DEB packages and places them in the + Package Feeds area. @@ -128,7 +147,8 @@ <filename>do_package_write_ipk</filename> - Creates the actual IPK packages and places them in the Package Feed + Creates the actual IPK packages and places them in the + Package Feeds area. @@ -137,7 +157,8 @@ <filename>do_package_write_rpm</filename> - Creates the actual RPM packages and places them in the Package Feed + Creates the actual RPM packages and places them in the + Package Feeds area. @@ -146,8 +167,9 @@ <filename>do_package_write_tar</filename> - Creates tar archives for packages and places them in the Package - Feed area. + Creates tar archives for packages and places them in the + Package Feeds + area. @@ -165,6 +187,9 @@ Locates patch files and applies them to the source code. + See the + "Patching" + section for more information. @@ -182,6 +207,9 @@ Creates the file and directory structure for an installable SDK. + See the + "SDK Generation" + section for more information. @@ -200,7 +228,11 @@ <filename>do_rm_work</filename> - Removes work files after the build system has finished with them. + Removes work files after the OpenEmbedded build system has + finished with them. + You can learn more by looking at the + "rm_work.bbclass" + section. @@ -218,6 +250,9 @@ Unpacks the source code into a working directory. + For more information on fetching and unpacking source files, see the + "Source Fetching" + section. @@ -234,7 +269,9 @@ <filename>do_checkuri</filename> - Validates the SRC_URI value. + Validates the + SRC_URI + value. @@ -242,8 +279,9 @@ <filename>do_checkuriall</filename> - Validates the SRC_URI value for all recipes required to build a - target. + Validates the + SRC_URI + value for all recipes required to build a target. @@ -259,8 +297,9 @@ <filename>do_cleanall</filename> - Removes all output files, shared state cache, and downloaded source - files for a target. + Removes all output files, shared state + (sstate) cache, and + downloaded source files for a target. @@ -268,7 +307,9 @@ <filename>do_cleansstate</filename> - Removes all output files and shared state cache for a target. + Removes all output files and shared state + (sstate) + cache for a target. @@ -284,8 +325,12 @@ <filename>do_devshell</filename> - Starts a shell with the environment set up for - development/debugging. + Starts a shell whose environment is set up for + development, debugging, or both. + See the + "Using a Development Shell" + section in the Yocto Project Development Manual for more + information about using devshell. @@ -310,6 +355,9 @@ Creates a bootable live image. + See the + IMAGE_FSTYPES + variable for additional information on live image types. @@ -317,8 +365,11 @@ <filename>do_bundle_initramfs</filename> - Combines an initial ramdisk image and kernel together to form - a single image. + Combines an initial RAM disk (initramfs) image and kernel + together to form a single image. + The + CONFIG_INITRAMFS_SOURCE + variable has some more information about these types of images. @@ -328,6 +379,9 @@ Creates the root filesystem (file and directory structure) for an image. + See the + "Image Generation" + section for more information on how the root filesystem is created. @@ -352,8 +406,9 @@ <filename>do_vmdkimg</filename> - Creates a .vmdk image for use with VMware and compatible virtual - machine hosts. + Creates a .vmdk image for use with + VMware + and compatible virtual machine hosts. @@ -363,10 +418,10 @@ The following tasks are applicable to kernel recipes. - Some of them (e.g. the + Some of these tasks (e.g. the do_menuconfig task) are also applicable to recipes that use - Linux kernel style configuration (e.g. BusyBox). + Linux kernel style configuration such as the BusyBox recipe.
@@ -415,7 +470,8 @@ <filename>do_kernel_link_vmlinux</filename> - Creates a symbolic link in arch/$arch/boot for vmlinux kernel + Creates a symbolic link in + arch/$arch/boot for vmlinux kernel images.
@@ -424,7 +480,10 @@ <filename>do_menuconfig</filename> - Runs 'make menuconfig' for the kernel. + Runs make menuconfig for the kernel. + For information on menuconfig, see the + "Using  menuconfig" + section in the Yocto Project Development Manual. @@ -440,8 +499,8 @@ <filename>do_sizecheck</filename> - Checks the size of the kernel image against KERNEL_IMAGE_MAXSIZE - (if set). + Checks the size of the kernel image against + KERNEL_IMAGE_MAXSIZE when set. @@ -465,8 +524,10 @@ <filename>do_validate_branches</filename> - Ensures that the source/meta branches are on the locations - specified by their SRCREV values for a linux-yocto style kernel. + Ensures that the source, metadata (or both) branches are on the + locations specified by their + SRCREV + values for a linux-yocto style kernel. @@ -482,7 +543,8 @@ <filename>do_generate_qt_config_file</filename> - Writes a qt.conf file for building a Qt-based application. + Writes a qt.conf configuration + file used for building a Qt-based application. @@ -492,6 +554,9 @@ A build stage that takes the source code and scans it on a remote FOSSOLOGY server in order to produce an SPDX document. + This task applies only to the + spdx + class.