ref-manual: Expanded on the "clean" tasks.

Fixes [YOCTO #1949]

Added more explanation and examples how to run for:

  bitbake -c clean <recipe>
  bitbake -c cleanall <recipe>
  bitbake -c cleansstate <recipe>

(From yocto-docs rev: 170d1a31c9c064884599c5485c16fcfffbefce5b)

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-06-16 11:14:12 +03:00 committed by Richard Purdie
parent a92fcf1c62
commit cf0be8389c
1 changed files with 60 additions and 4 deletions

View File

@ -283,10 +283,28 @@
<title><filename>do_clean</filename></title> <title><filename>do_clean</filename></title>
<para> <para>
Removes all output files for a target. Removes all output files for a target from the
When this task is run, the <link linkend='ref-tasks-unpack'><filename>do_unpack</filename></link>
task forward (i.e.
<link linkend='ref-tasks-patch'><filename>do_unpack</filename></link>,
<link linkend='ref-tasks-configure'><filename>do_configure</filename></link>,
<link linkend='ref-tasks-compile'><filename>do_compile</filename></link>,
<link linkend='ref-tasks-install'><filename>do_install</filename></link>,
and
<link linkend='ref-tasks-package'><filename>do_package</filename></link>).
</para>
<para>
You can run this task using BitBake as follows:
<literallayout class='monospaced'>
$ bitbake -c clean &lt;recipe&gt;
</literallayout>
</para>
<para>
Running this task does not remove the
<link linkend='shared-state-cache'>sstate</link>) cache <link linkend='shared-state-cache'>sstate</link>) cache
files are not deleted. files.
Consequently, if no changes have been made and the recipe is Consequently, if no changes have been made and the recipe is
rebuilt after cleaning, output files are simply restored from the rebuilt after cleaning, output files are simply restored from the
sstate cache. sstate cache.
@ -304,6 +322,25 @@
Removes all output files, shared state Removes all output files, shared state
(<link linkend='shared-state-cache'>sstate</link>) cache, and (<link linkend='shared-state-cache'>sstate</link>) cache, and
downloaded source files for a target. downloaded source files for a target.
Essentially, the <filename>do_cleanall</filename> task is
identical to the
<link linkend='ref-tasks-cleansstate'><filename>do_cleansstate</filename></link>
task with the added removal of downloaded source files.
</para>
<para>
You can run this task using BitBake as follows:
<literallayout class='monospaced'>
$ bitbake -c cleanall &lt;recipe&gt;
</literallayout>
</para>
<para>
Typically, you would not normally use the
<filename>cleanall</filename> task.
Do so only if you want to start fresh with the
<link linkend='ref-tasks-fetch'><filename>do_fetch</filename></link>
task.
</para> </para>
</section> </section>
@ -314,8 +351,27 @@
Removes all output files and shared state Removes all output files and shared state
(<link linkend='shared-state-cache'>sstate</link>) (<link linkend='shared-state-cache'>sstate</link>)
cache for a target. cache for a target.
Essentially, the <filename>do_cleansstate</filename> task is
identical to the
<link linkend='ref-tasks-clean'><filename>do_clean</filename></link>
task with the added removal of shared state
(<link linkend='shared-state-cache'>sstate</link>) cache.
</para> </para>
</section>
<para>
You can run this task using BitBake as follows:
<literallayout class='monospaced'>
$ bitbake -c cleansstate &lt;recipe&gt;
</literallayout>
</para>
<para>
When you run the <filename>do_cleanstate</filename> task,
the OpenEmbedded build system no longer uses any
sstate.
Consequently, building the recipe from scratch is guaranteed.
</para>
</section>
<section id='ref-tasks-devshell'> <section id='ref-tasks-devshell'>
<title><filename>do_devshell</filename></title> <title><filename>do_devshell</filename></title>