1
0
mirror of https://git.yoctoproject.org/poky synced 2026-05-30 00:20:08 +00:00

ref-manual, dev-manual: Moved "Speeding Build" to dev-manual

Fixes [YOCTO #12370]

The section on "Speeding Up a Build" that was in the ref-manual
needed to be in the dev-manual as it is a "how-to" section.
Moved it.

(From yocto-docs rev: 44d2889a4f3fb5dfabb1ea4df68a1b8bbf9347c8)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Scott Rifenbark
2018-01-23 12:16:28 -08:00
committed by Richard Purdie
parent 30b91e6d89
commit ebc7de0948
2 changed files with 19 additions and 25 deletions
+15 -21
View File
@@ -8,10 +8,8 @@
<para> <para>
This chapter provides procedures related to getting set up to use the This chapter provides procedures related to getting set up to use the
Yocto Project. Yocto Project, working with Yocto Project source files, and building
For a more front-to-end process that takes you from minimally preparing an image.
a build host through building an image, see the
<ulink url='&YOCTO_DOCS_QS_URL;'>Yocto Project Quick Start</ulink>.
</para> </para>
<section id='setting-up-the-development-host-to-use-the-yocto-project'> <section id='setting-up-the-development-host-to-use-the-yocto-project'>
@@ -857,7 +855,7 @@
information: information:
<itemizedlist> <itemizedlist>
<listitem><para> <listitem><para>
<link linkend='var-BB_NUMBER_THREADS'><filename>BB_NUMBER_THREADS</filename>:</link> <ulink url='&YOCTO_DOCS_REF_URL;#var-BB_NUMBER_THREADS'><filename>BB_NUMBER_THREADS</filename>:</ulink>
The maximum number of threads BitBake simultaneously executes. The maximum number of threads BitBake simultaneously executes.
</para></listitem> </para></listitem>
<listitem><para> <listitem><para>
@@ -865,18 +863,18 @@
The number of threads BitBake uses during parsing. The number of threads BitBake uses during parsing.
</para></listitem> </para></listitem>
<listitem><para> <listitem><para>
<link linkend='var-PARALLEL_MAKE'><filename>PARALLEL_MAKE</filename>:</link> <ulink url='&YOCTO_DOCS_REF_URL;#var-PARALLEL_MAKE'><filename>PARALLEL_MAKE</filename>:</ulink>
Extra options passed to the <filename>make</filename> command Extra options passed to the <filename>make</filename> command
during the during the
<link linkend='ref-tasks-compile'><filename>do_compile</filename></link> <ulink url='&YOCTO_DOCS_REF_URL;#ref-tasks-compile'><filename>do_compile</filename></ulink>
task in order to specify parallel compilation on the task in order to specify parallel compilation on the
local build host. local build host.
</para></listitem> </para></listitem>
<listitem><para> <listitem><para>
<link linkend='var-PARALLEL_MAKEINST'><filename>PARALLEL_MAKEINST</filename>:</link> <ulink url='&YOCTO_DOCS_REF_URL;#var-PARALLEL_MAKEINST'><filename>PARALLEL_MAKEINST</filename>:</ulink>
Extra options passed to the <filename>make</filename> command Extra options passed to the <filename>make</filename> command
during the during the
<link linkend='ref-tasks-install'><filename>do_install</filename></link> <ulink url='&YOCTO_DOCS_REF_URL;#ref-tasks-install'><filename>do_install</filename></ulink>
task in order to specify parallel installation on the task in order to specify parallel installation on the
local build host. local build host.
</para></listitem> </para></listitem>
@@ -923,7 +921,7 @@
</para></listitem> </para></listitem>
<listitem><para> <listitem><para>
Using <filename>tmpfs</filename> for Using <filename>tmpfs</filename> for
<link linkend='var-TMPDIR'><filename>TMPDIR</filename></link> <ulink url='&YOCTO_DOCS_REF_URL;#var-TMPDIR'><filename>TMPDIR</filename></ulink>
as a temporary file system: as a temporary file system:
While this can help speed up the build, the benefits are While this can help speed up the build, the benefits are
limited due to the compiler using limited due to the compiler using
@@ -932,23 +930,24 @@
<filename>sync()</filename> calls into the <filename>sync()</filename> calls into the
file system on the principle that if there was a significant file system on the principle that if there was a significant
failure, the failure, the
<link linkend='build-directory'>Build Directory</link> <ulink url='&YOCTO_DOCS_REF_URL;#build-directory'>Build Directory</ulink>
contents could easily be rebuilt. contents could easily be rebuilt.
</para></listitem> </para></listitem>
<listitem><para> <listitem><para>
Inheriting the Inheriting the
<link linkend='ref-classes-rm-work'><filename>rm_work</filename></link> <ulink url='&YOCTO_DOCS_REF_URL;#ref-classes-rm-work'><filename>rm_work</filename></ulink>
class: class:
Inheriting this class has shown to speed up builds due to Inheriting this class has shown to speed up builds due to
significantly lower amounts of data stored in the data significantly lower amounts of data stored in the data
cache as well as on disk. cache as well as on disk.
Inheriting this class also makes cleanup of Inheriting this class also makes cleanup of
<link linkend='var-TMPDIR'><filename>TMPDIR</filename></link> <ulink url='&YOCTO_DOCS_REF_URL;#var-TMPDIR'><filename>TMPDIR</filename></ulink>
faster, at the expense of being easily able to dive into the faster, at the expense of being easily able to dive into the
source code. source code.
File system maintainers have recommended that the fastest way File system maintainers have recommended that the fastest way
to clean up large numbers of files is to reformat partitions to clean up large numbers of files is to reformat partitions
rather than delete files due to the linear nature of partitions. rather than delete files due to the linear nature of
partitions.
This, of course, assumes you structure the disk partitions and This, of course, assumes you structure the disk partitions and
file systems in a way that this is practical. file systems in a way that this is practical.
</para></listitem> </para></listitem>
@@ -958,7 +957,7 @@
<itemizedlist> <itemizedlist>
<listitem><para> <listitem><para>
Remove items from Remove items from
<link linkend='var-DISTRO_FEATURES'><filename>DISTRO_FEATURES</filename></link> <ulink url='&YOCTO_DOCS_REF_URL;#var-DISTRO_FEATURES'><filename>DISTRO_FEATURES</filename></ulink>
that you might not need. that you might not need.
</para></listitem> </para></listitem>
<listitem><para> <listitem><para>
@@ -967,7 +966,7 @@
disabling the <filename>*-dbg</filename> package generation disabling the <filename>*-dbg</filename> package generation
can speed up the build. can speed up the build.
You can disable this generation by setting the You can disable this generation by setting the
<link linkend='var-INHIBIT_PACKAGE_DEBUG_SPLIT'><filename>INHIBIT_PACKAGE_DEBUG_SPLIT</filename></link> <ulink url='&YOCTO_DOCS_REF_URL;#var-INHIBIT_PACKAGE_DEBUG_SPLIT'><filename>INHIBIT_PACKAGE_DEBUG_SPLIT</filename></ulink>
variable to "1". variable to "1".
</para></listitem> </para></listitem>
<listitem><para> <listitem><para>
@@ -1000,11 +999,6 @@
</itemizedlist> </itemizedlist>
</para> </para>
</section> </section>
</chapter> </chapter>
<!-- <!--
vim: expandtab tw=80 ts=4 vim: expandtab tw=80 ts=4
+4 -4
View File
@@ -972,8 +972,8 @@
<para> <para>
For more information on speeding up builds, see the For more information on speeding up builds, see the
"<link linkend='speeding-up-the-build'>Speeding Up the Build</link>" "<ulink url='&YOCTO_DOCS_DEV_URL;#speeding-up-the-build'>Speeding Up the Build</ulink>"
section. section in the Yocto Project Development Tasks Manual.
</para> </para>
</glossdef> </glossdef>
</glossentry> </glossentry>
@@ -10170,8 +10170,8 @@ recipes-graphics/xorg-font/font-alias_1.0.3.bb:PR = "${INC_PR}.3"
<para> <para>
For more information on speeding up builds, see the For more information on speeding up builds, see the
"<link linkend='speeding-up-the-build'>Speeding Up the Build</link>" "<ulink url='&YOCTO_DOCS_DEV_URL;#speeding-up-the-build'>Speeding Up the Build</ulink>"
section. section in the Yocto Project Development Tasks Manual.
</para> </para>
</glossdef> </glossdef>
</glossentry> </glossentry>