From 8e264656457237c462b30531122143d3a33a057e Mon Sep 17 00:00:00 2001 From: Patrick Georgi Date: Sat, 5 Nov 2011 12:47:13 +0100 Subject: abuild: Avoid race condition when running abuild parallely By moving the just-created file away, parallel runs of abuild might break. Change-Id: I03368f00e9b11dad4c80d41279970e28debc7ed5 Signed-off-by: Patrick Georgi Reviewed-on: http://review.coreboot.org/405 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer --- util/abuild/abuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util/abuild') diff --git a/util/abuild/abuild b/util/abuild/abuild index 0ed295ff18..ba144aabd5 100755 --- a/util/abuild/abuild +++ b/util/abuild/abuild @@ -289,7 +289,7 @@ function compile_target eval $MAKE $silent -j $cpus DOTCONFIG=${build_dir}/config.build obj=${build_dir} objutil=$TARGET/sharedutils \ &> ${build_dir}/make.log ret=$? - mv .xcompile ${build_dir}/xcompile.build + cp .xcompile ${build_dir}/xcompile.build cd $TARGET/${VENDOR}_${MAINBOARD} etime=`perl -e 'print time();' 2>/dev/null || date +%s` -- cgit v1.2.3