summaryrefslogtreecommitdiffstats
path: root/util/abuild
diff options
context:
space:
mode:
authorPatrick Georgi <patrick@georgi-clan.de>2011-11-05 12:55:18 +0100
committerStefan Reinauer <stefan.reinauer@coreboot.org>2011-11-06 18:23:33 +0100
commitf49f7c851477a91587308de9a2553e91ed3c22e2 (patch)
tree86ce3065f884917dd850c7345a6f89264344be25 /util/abuild
parent8e264656457237c462b30531122143d3a33a057e (diff)
downloadcoreboot-f49f7c851477a91587308de9a2553e91ed3c22e2.tar.gz
coreboot-f49f7c851477a91587308de9a2553e91ed3c22e2.tar.bz2
coreboot-f49f7c851477a91587308de9a2553e91ed3c22e2.zip
abuild: Refactor parallelization support
Use MAKEFLAGS to propagate the parallelization configuration to the build Change-Id: If90ed446edd8e6dc679d284ee9db7a24269edd36 Signed-off-by: Patrick Georgi <patrick@georgi-clan.de> Reviewed-on: http://review.coreboot.org/406 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'util/abuild')
-rwxr-xr-xutil/abuild/abuild8
1 files changed, 6 insertions, 2 deletions
diff --git a/util/abuild/abuild b/util/abuild/abuild
index ba144aabd5ba..4ab0230c6f23 100755
--- a/util/abuild/abuild
+++ b/util/abuild/abuild
@@ -222,7 +222,7 @@ function create_config
fi
fi
- #yes "" | $MAKE oldconfig -j $cpus obj=${build_dir} objutil=$TARGET/sharedutils &> ${build_dir}/config.log
+ #yes "" | $MAKE oldconfig obj=${build_dir} objutil=$TARGET/sharedutils &> ${build_dir}/config.log
yes "" | $MAKE oldconfig DOTCONFIG=${build_dir}/config.build obj=${build_dir} objutil=$TARGET/sharedutils &> ${build_dir}/config.log
ret=$?
if [ $ret -eq 0 ]; then
@@ -286,7 +286,7 @@ function compile_target
CURR=$( pwd )
#stime=`perl -e 'print time();' 2>/dev/null || date +%s`
build_dir=$TARGET/${VENDOR}_${MAINBOARD}
- eval $MAKE $silent -j $cpus DOTCONFIG=${build_dir}/config.build obj=${build_dir} objutil=$TARGET/sharedutils \
+ eval $MAKE $silent DOTCONFIG=${build_dir}/config.build obj=${build_dir} objutil=$TARGET/sharedutils \
&> ${build_dir}/make.log
ret=$?
cp .xcompile ${build_dir}/xcompile.build
@@ -624,6 +624,10 @@ while true ; do
esac
done
+if [ "$cpus" != "1" ]; then
+ export MAKEFLAGS="-j $cpus"
+fi
+
# /path/to/freebios2/
test -z "$1" || ROOT=$1