Patchwork boost: Use PARALLEL_MAKE for bjam

login
register
mail settings
Submitter Samuel Stirtzel
Date Jan. 10, 2013, 10:35 a.m.
Message ID <1357814147-3319-1-git-send-email-s.stirtzel@googlemail.com>
Download mbox | patch
Permalink /patch/42443/
State New
Headers show

Comments

Samuel Stirtzel - Jan. 10, 2013, 10:35 a.m.
Like make, bjam accepts the parameter -jX for multithreaded execution
do_install also profits from this setting
Tested with a quad core 64bit intel cpu (with hyperthreading) PARALLEL_MAKE="j16"

$ time bitbake boost

before:
real    14m37.433s
user    7m40.785s
sys     4m30.109s

after:
real    7m11.979s
user    12m10.694s
sys     2m47.078s

Also fixes tab indention

Signed-off-by: Samuel Stirtzel <s.stirtzel@googlemail.com>
---
 meta/recipes-support/boost/boost.inc |    8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

Patch

diff --git a/meta/recipes-support/boost/boost.inc b/meta/recipes-support/boost/boost.inc
index 830fcb0..4fe5a35 100644
--- a/meta/recipes-support/boost/boost.inc
+++ b/meta/recipes-support/boost/boost.inc
@@ -120,10 +120,12 @@  BJAM_TOOLS   = "-sTOOLS=gcc \
 		'--layout=system' \
 		"
 
-BJAM_OPTS    = '${BJAM_TOOLS} \
-                -sBOOST_BUILD_USER_CONFIG=${S}/tools/build/v2/user-config.jam \
+#use PARALLEL_MAKE to speed up the build
+BJAM_OPTS    = '${PARALLEL_MAKE} \
+		${BJAM_TOOLS} \
+		-sBOOST_BUILD_USER_CONFIG=${S}/tools/build/v2/user-config.jam \
 		--builddir=${S}/${TARGET_SYS} \
-                --disable-icu \
+		--disable-icu \
 		${BJAM_EXTRA}'