1
0
mirror of https://git.yoctoproject.org/poky synced 2026-05-09 17:39:31 +00:00

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 <scott.m.rifenbark@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Scott Rifenbark
2014-05-09 17:33:41 +03:00
committed by Richard Purdie
parent 084c784fb5
commit f3dc906650
+98 -33
View File
@@ -25,8 +25,9 @@
<title><filename>do_build</filename></title> <title><filename>do_build</filename></title>
<para> <para>
Default task for a recipe - depends on all other normal tasks The default task for all recipes.
required to 'build' a recipe. This task depends on all other normal tasks
required to build a recipe.
</para> </para>
</section> </section>
@@ -34,7 +35,9 @@
<title><filename>do_compile</filename></title> <title><filename>do_compile</filename></title>
<para> <para>
Compiles the source in the compilation directory. Compiles the source in the compilation directory, which is pointed
to by the
<link linkend='var-B'><filename>B</filename></link> variable.
</para> </para>
</section> </section>
@@ -69,7 +72,10 @@
<title><filename>do_deploy</filename></title> <title><filename>do_deploy</filename></title>
<para> <para>
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
<link linkend='var-DEPLOYDIR'><filename>DEPLOYDIR</filename></link>
variable.
</para> </para>
</section> </section>
@@ -78,6 +84,12 @@
<para> <para>
Fetches the source code. Fetches the source code.
This task uses the
<link linkend='var-SRC_URI'><filename>SRC_URI</filename></link>
variable and the argument's prefix to determine the correct
fetcher module.
Unpacked source files reside in the
<link linkend='var-S'><filename>S</filename></link> directory.
</para> </para>
</section> </section>
@@ -85,7 +97,11 @@
<title><filename>do_install</filename></title> <title><filename>do_install</filename></title>
<para> <para>
Copies files from the compilation directory to a holding area. Copies files from the compilation directory, which is defined by
the
<link linkend='var-B'><filename>B</filename></link> variable,
to a holding area defined by the
<link linkend='var-D'><filename>D</filename></link> variable.
</para> </para>
</section> </section>
@@ -111,7 +127,9 @@
<title><filename>do_package_index</filename></title> <title><filename>do_package_index</filename></title>
<para> <para>
Creates or updates the index in the Package Feed area. Creates or updates the index in the
<link linkend='package-feeds-dev-environment'>Package Feeds</link>
area.
</para> </para>
</section> </section>
@@ -119,7 +137,8 @@
<title><filename>do_package_write_deb</filename></title> <title><filename>do_package_write_deb</filename></title>
<para> <para>
Creates the actual DEB packages and places them in the Package Feed Creates the actual DEB packages and places them in the
<link linkend='package-feeds-dev-environment'>Package Feeds</link>
area. area.
</para> </para>
</section> </section>
@@ -128,7 +147,8 @@
<title><filename>do_package_write_ipk</filename></title> <title><filename>do_package_write_ipk</filename></title>
<para> <para>
Creates the actual IPK packages and places them in the Package Feed Creates the actual IPK packages and places them in the
<link linkend='package-feeds-dev-environment'>Package Feeds</link>
area. area.
</para> </para>
</section> </section>
@@ -137,7 +157,8 @@
<title><filename>do_package_write_rpm</filename></title> <title><filename>do_package_write_rpm</filename></title>
<para> <para>
Creates the actual RPM packages and places them in the Package Feed Creates the actual RPM packages and places them in the
<link linkend='package-feeds-dev-environment'>Package Feeds</link>
area. area.
</para> </para>
</section> </section>
@@ -146,8 +167,9 @@
<title><filename>do_package_write_tar</filename></title> <title><filename>do_package_write_tar</filename></title>
<para> <para>
Creates tar archives for packages and places them in the Package Creates tar archives for packages and places them in the
Feed area. <link linkend='package-feeds-dev-environment'>Package Feeds</link>
area.
</para> </para>
</section> </section>
@@ -165,6 +187,9 @@
<para> <para>
Locates patch files and applies them to the source code. Locates patch files and applies them to the source code.
See the
"<link linkend='patching-dev-environment'>Patching</link>"
section for more information.
</para> </para>
</section> </section>
@@ -182,6 +207,9 @@
<para> <para>
Creates the file and directory structure for an installable SDK. Creates the file and directory structure for an installable SDK.
See the
"<link linkend='sdk-generation-dev-environment'>SDK Generation</link>"
section for more information.
</para> </para>
</section> </section>
@@ -200,7 +228,11 @@
<title><filename>do_rm_work</filename></title> <title><filename>do_rm_work</filename></title>
<para> <para>
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
"<link linkend='ref-classes-rm-work'><filename>rm_work.bbclass</filename></link>"
section.
</para> </para>
</section> </section>
@@ -218,6 +250,9 @@
<para> <para>
Unpacks the source code into a working directory. Unpacks the source code into a working directory.
For more information on fetching and unpacking source files, see the
"<link linkend='source-fetching-dev-environment'>Source Fetching</link>"
section.
</para> </para>
</section> </section>
</section> </section>
@@ -234,7 +269,9 @@
<title><filename>do_checkuri</filename></title> <title><filename>do_checkuri</filename></title>
<para> <para>
Validates the SRC_URI value. Validates the
<link linkend='var-SRC_URI'><filename>SRC_URI</filename></link>
value.
</para> </para>
</section> </section>
@@ -242,8 +279,9 @@
<title><filename>do_checkuriall</filename></title> <title><filename>do_checkuriall</filename></title>
<para> <para>
Validates the SRC_URI value for all recipes required to build a Validates the
target. <link linkend='var-SRC_URI'><filename>SRC_URI</filename></link>
value for all recipes required to build a target.
</para> </para>
</section> </section>
@@ -259,8 +297,9 @@
<title><filename>do_cleanall</filename></title> <title><filename>do_cleanall</filename></title>
<para> <para>
Removes all output files, shared state cache, and downloaded source Removes all output files, shared state
files for a target. (<link linkend='shared-state-cache'>sstate</link>) cache, and
downloaded source files for a target.
</para> </para>
</section> </section>
@@ -268,7 +307,9 @@
<title><filename>do_cleansstate</filename></title> <title><filename>do_cleansstate</filename></title>
<para> <para>
Removes all output files and shared state cache for a target. Removes all output files and shared state
(<link linkend='shared-state-cache'>sstate</link>)
cache for a target.
</para> </para>
</section> </section>
@@ -284,8 +325,12 @@
<title><filename>do_devshell</filename></title> <title><filename>do_devshell</filename></title>
<para> <para>
Starts a shell with the environment set up for Starts a shell whose environment is set up for
development/debugging. development, debugging, or both.
See the
"<ulink url='&YOCTO_DOCS_DEV_URL;#platdev-appdev-devshell'>Using a Development Shell</ulink>"
section in the Yocto Project Development Manual for more
information about using <filename>devshell</filename>.
</para> </para>
</section> </section>
@@ -310,6 +355,9 @@
<para> <para>
Creates a bootable live image. Creates a bootable live image.
See the
<link linkend='var-IMAGE_FSTYPES'><filename>IMAGE_FSTYPES</filename></link>
variable for additional information on live image types.
</para> </para>
</section> </section>
@@ -317,8 +365,11 @@
<title><filename>do_bundle_initramfs</filename></title> <title><filename>do_bundle_initramfs</filename></title>
<para> <para>
Combines an initial ramdisk image and kernel together to form Combines an initial RAM disk (initramfs) image and kernel
a single image. together to form a single image.
The
<link linkend='var-CONFIG_INITRAMFS_SOURCE'><filename>CONFIG_INITRAMFS_SOURCE</filename></link>
variable has some more information about these types of images.
</para> </para>
</section> </section>
@@ -328,6 +379,9 @@
<para> <para>
Creates the root filesystem (file and directory structure) for an Creates the root filesystem (file and directory structure) for an
image. image.
See the
"<link linkend='image-generation-dev-environment'>Image Generation</link>"
section for more information on how the root filesystem is created.
</para> </para>
</section> </section>
@@ -352,8 +406,9 @@
<title><filename>do_vmdkimg</filename></title> <title><filename>do_vmdkimg</filename></title>
<para> <para>
Creates a .vmdk image for use with VMware and compatible virtual Creates a <filename>.vmdk</filename> image for use with
machine hosts. <ulink url='http://www.vmware.com/'>VMware</ulink>
and compatible virtual machine hosts.
</para> </para>
</section> </section>
</section> </section>
@@ -363,10 +418,10 @@
<para> <para>
The following tasks are applicable to kernel recipes. The following tasks are applicable to kernel recipes.
Some of them (e.g. the Some of these tasks (e.g. the
<link linkend='ref-tasks-menuconfig'><filename>do_menuconfig</filename></link> <link linkend='ref-tasks-menuconfig'><filename>do_menuconfig</filename></link>
task) are also applicable to recipes that use task) are also applicable to recipes that use
Linux kernel style configuration (e.g. BusyBox). Linux kernel style configuration such as the BusyBox recipe.
</para> </para>
<section id='ref-tasks-compile_kernelmodules'> <section id='ref-tasks-compile_kernelmodules'>
@@ -415,7 +470,8 @@
<title><filename>do_kernel_link_vmlinux</filename></title> <title><filename>do_kernel_link_vmlinux</filename></title>
<para> <para>
Creates a symbolic link in arch/$arch/boot for vmlinux kernel Creates a symbolic link in
<filename>arch/$arch/boot</filename> for vmlinux kernel
images. images.
</para> </para>
</section> </section>
@@ -424,7 +480,10 @@
<title><filename>do_menuconfig</filename></title> <title><filename>do_menuconfig</filename></title>
<para> <para>
Runs 'make menuconfig' for the kernel. Runs <filename>make menuconfig</filename> for the kernel.
For information on <filename>menuconfig</filename>, see the
"<ulink url='&YOCTO_DOCS_DEV_URL;#using-menuconfig'>Using&nbsp;&nbsp;<filename>menuconfig</filename></ulink>"
section in the Yocto Project Development Manual.
</para> </para>
</section> </section>
@@ -440,8 +499,8 @@
<title><filename>do_sizecheck</filename></title> <title><filename>do_sizecheck</filename></title>
<para> <para>
Checks the size of the kernel image against KERNEL_IMAGE_MAXSIZE Checks the size of the kernel image against
(if set). <filename>KERNEL_IMAGE_MAXSIZE</filename> when set.
</para> </para>
</section> </section>
@@ -465,8 +524,10 @@
<title><filename>do_validate_branches</filename></title> <title><filename>do_validate_branches</filename></title>
<para> <para>
Ensures that the source/meta branches are on the locations Ensures that the source, metadata (or both) branches are on the
specified by their SRCREV values for a linux-yocto style kernel. locations specified by their
<link linkend='var-SRCREV'><filename>SRCREV</filename></link>
values for a linux-yocto style kernel.
</para> </para>
</section> </section>
</section> </section>
@@ -482,7 +543,8 @@
<title><filename>do_generate_qt_config_file</filename></title> <title><filename>do_generate_qt_config_file</filename></title>
<para> <para>
Writes a qt.conf file for building a Qt-based application. Writes a <filename>qt.conf</filename> configuration
file used for building a Qt-based application.
</para> </para>
</section> </section>
@@ -492,6 +554,9 @@
<para> <para>
A build stage that takes the source code and scans it on a remote A build stage that takes the source code and scans it on a remote
FOSSOLOGY server in order to produce an SPDX document. FOSSOLOGY server in order to produce an SPDX document.
This task applies only to the
<link linkend='ref-classes-spdx'><filename>spdx</filename></link>
class.
</para> </para>
</section> </section>
</section> </section>