From df337651e4aea2cb0d17785609e3a3f8dca1d1e2 Mon Sep 17 00:00:00 2001 From: Scott Rifenbark Date: Wed, 3 Aug 2016 10:37:22 -0700 Subject: ref-manual: Updates to PARALLEL_MAKE, PARALLEL_MAKEINST, EXTRA_OEMAKE Fixes [YOCTO #10070] Updated these three variables with various items to make clear that PARALLEL_MAKE and PARALLEL_MAKEINST won't work unless EXTRA_OEMAKE is passed to "make". (From yocto-docs rev: 4f8b56cc67502cd672e0296cf2f143ecbcde22ac) Signed-off-by: Scott Rifenbark Signed-off-by: Richard Purdie --- documentation/ref-manual/ref-variables.xml | 33 ++++++++++++++++++++++++++---- 1 file changed, 29 insertions(+), 4 deletions(-) diff --git a/documentation/ref-manual/ref-variables.xml b/documentation/ref-manual/ref-variables.xml index 8ff0d671d1..d1a31a4bc9 100644 --- a/documentation/ref-manual/ref-variables.xml +++ b/documentation/ref-manual/ref-variables.xml @@ -4025,6 +4025,15 @@ "", you need to set the variable to specify any required GNU options. + + + PARALLEL_MAKE + and + PARALLEL_MAKEINST + also make use of + EXTRA_OEMAKE to pass the required + flags. + @@ -9259,6 +9268,14 @@ recipes-graphics/xorg-font/font-alias_1.0.3.bb:PR = "${INC_PR}.3" where x represents the maximum number of parallel threads make can run. + Caution + In order for PARALLEL_MAKE to be + effective, make must be called + with + ${EXTRA_OEMAKE}. + An easy way to ensure this is to use the + oe_runmake function. + @@ -9305,16 +9322,24 @@ recipes-graphics/xorg-font/font-alias_1.0.3.bb:PR = "${INC_PR}.3" task in order to specify parallel installation. This variable defaults to the value of PARALLEL_MAKE. - - If the software being built experiences dependency - issues during the + Notes and Cautions + In order for PARALLEL_MAKEINST + to be + effective, make must be called + with + ${EXTRA_OEMAKE}. + An easy way to ensure this is to use the + oe_runmake function. + + If the software being built experiences + dependency issues during the do_install task that result in race conditions, you can clear the PARALLEL_MAKEINST variable within the recipe as a workaround. For information on addressing race conditions, see the "Debugging Parallel Make Races" - section in the Yocto Project Development Manual. + section in the Yocto Project Development Manual. -- cgit v1.2.3-54-g00ecf