From 09203453dd6a0b4c4012a6ffa456494e1c4a4fe3 Mon Sep 17 00:00:00 2001 From: Michael Marineau Date: Wed, 17 Jul 2013 18:04:51 -0700 Subject: [PATCH] fix(scripts): Add --load-average to MAKEOPTS Already did this for catalyst builds but might as well do it for all. With this competing builds on the same host should be a little friendlier to each other. --- sdk_lib/make_conf_util.sh | 3 ++- setup_board | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/sdk_lib/make_conf_util.sh b/sdk_lib/make_conf_util.sh index 6a8cd203d0..914b67eeb0 100644 --- a/sdk_lib/make_conf_util.sh +++ b/sdk_lib/make_conf_util.sh @@ -87,7 +87,8 @@ _create_host_setup() { _make_conf_fetchcommand "$fetchtype" _make_conf_private "$fetchtype" _make_conf_prebuilt - echo 'MAKEOPTS="-j'${NUM_JOBS}'"' ) | sudo_clobber "$host_setup" + echo "MAKEOPTS='--jobs=${NUM_JOBS} --load-average=${NUM_JOBS}'" + ) | sudo_clobber "$host_setup" sudo chmod 644 "$host_setup" } diff --git a/setup_board b/setup_board index 0dab416996..52ba61230b 100755 --- a/setup_board +++ b/setup_board @@ -300,7 +300,7 @@ sudo_clobber "${BOARD_SETUP}" <