summaryrefslogtreecommitdiffstats
path: root/documentation/ref-manual
diff options
context:
space:
mode:
authorScott Rifenbark <scott.m.rifenbark@intel.com>2015-05-05 07:39:20 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-10-21 23:11:35 +0100
commitd5236b6535af8c1c6be2dd74f3df197b033c2b70 (patch)
tree6ee1184f5c2dbda5429539486033d5ee7b85f0af /documentation/ref-manual
parent1025e7fa1643b6c0516b80e6090ff9407b4cc005 (diff)
downloadpoky-d5236b6535af8c1c6be2dd74f3df197b033c2b70.tar.gz
ref-manual, dev-manual: Added info about make race work-around
I updated both the PARALLEL_MAKE and PARALLEL_MAKEINST variables by expanding the note to indicate how to prohibit parallel make threads. Also, added a cross-referencing link to the "Debugging Parallel Make Races" section. I added a short note to the start of the "Debugging Parallel Make Races" section noting that if they can't properly fix the condition, they can always do a work-around to set the PARALLEL_MAKE or PARALLEL_MAKEINST variables to null. Reported-by: Robert P. J. Day <rpjday@crashcourse.ca> (From yocto-docs rev: 8c0dc2540e97a4e3a42c1d541ea20e65518fffef) Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'documentation/ref-manual')
-rw-r--r--documentation/ref-manual/ref-variables.xml31
1 files changed, 21 insertions, 10 deletions
diff --git a/documentation/ref-manual/ref-variables.xml b/documentation/ref-manual/ref-variables.xml
index 27008c7a5d..dfe775b23f 100644
--- a/documentation/ref-manual/ref-variables.xml
+++ b/documentation/ref-manual/ref-variables.xml
@@ -8525,13 +8525,18 @@ recipes-graphics/xorg-font/font-alias_1.0.3.bb:PR = "${INC_PR}.3"
8525 </para> 8525 </para>
8526 8526
8527 <para> 8527 <para>
8528 The OpenEmbedded build system automatically sets this 8528 By default, the OpenEmbedded build system automatically
8529 variable to be equal to the number of cores the build 8529 sets this variable to be equal to the number of cores the
8530 system uses. 8530 build system uses.
8531 <note> 8531 <note>
8532 Individual recipes might clear out this variable if 8532 If the software being built experiences dependency
8533 the software being built has problems running its 8533 issues during the <filename>do_compile</filename>
8534 <filename>make</filename> process in parallel. 8534 task that result in race conditions, you can clear
8535 the <filename>PARALLEL_MAKE</filename> variable within
8536 the recipe as a workaround.
8537 For information on addressing race conditions, see the
8538 "<ulink url='&YOCTO_DOCS_DEV_URL;#debugging-parallel-make-races'>Debugging Parallel Make Races</ulink>"
8539 section in the Yocto Project Development Manual.
8535 </note> 8540 </note>
8536 For single socket systems (i.e. one CPU), you should not 8541 For single socket systems (i.e. one CPU), you should not
8537 have to override this variable to gain optimal parallelism 8542 have to override this variable to gain optimal parallelism
@@ -8539,7 +8544,7 @@ recipes-graphics/xorg-font/font-alias_1.0.3.bb:PR = "${INC_PR}.3"
8539 However, if you have very large systems that employ 8544 However, if you have very large systems that employ
8540 multiple physical CPUs, you might want to make sure the 8545 multiple physical CPUs, you might want to make sure the
8541 <filename>PARALLEL_MAKE</filename> variable is not 8546 <filename>PARALLEL_MAKE</filename> variable is not
8542 set higher than "20". 8547 set higher than "-j 20".
8543 </para> 8548 </para>
8544 8549
8545 <para> 8550 <para>
@@ -8564,9 +8569,15 @@ recipes-graphics/xorg-font/font-alias_1.0.3.bb:PR = "${INC_PR}.3"
8564 This variable defaults to the value of 8569 This variable defaults to the value of
8565 <link linkend='var-PARALLEL_MAKE'><filename>PARALLEL_MAKE</filename></link>. 8570 <link linkend='var-PARALLEL_MAKE'><filename>PARALLEL_MAKE</filename></link>.
8566 <note> 8571 <note>
8567 Individual recipes might clear out this variable if 8572 If the software being built experiences dependency
8568 the software being built has problems running its 8573 issues during the
8569 <filename>make install</filename> process in parallel. 8574 <filename>do_install</filename> task that result in
8575 race conditions, you can clear the
8576 <filename>PARALLEL_MAKEINST</filename> variable within
8577 the recipe as a workaround.
8578 For information on addressing race conditions, see the
8579 "<ulink url='&YOCTO_DOCS_DEV_URL;#debugging-parallel-make-races'>Debugging Parallel Make Races</ulink>"
8580 section in the Yocto Project Development Manual.
8570 </note> 8581 </note>
8571 </para> 8582 </para>
8572 </glossdef> 8583 </glossdef>