[coreboot] New patch to review for coreboot: 4e95b5a abuild: Avoid race condition when running abuild parallely

Patrick Georgi (patrick@georgi-clan.de) gerrit at coreboot.org
Sat Nov 5 14:48:10 CET 2011

Patrick Georgi (patrick at georgi-clan.de) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/405


commit 4e95b5a8d0a0c82705ff8cadf1f316278dc02dd1
Author: Patrick Georgi <patrick at georgi-clan.de>
Date:   Sat Nov 5 12:47:13 2011 +0100

    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 <patrick at georgi-clan.de>
 util/abuild/abuild |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/util/abuild/abuild b/util/abuild/abuild
index 0ed295f..ba144aa 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
-	mv .xcompile ${build_dir}/xcompile.build
+	cp .xcompile ${build_dir}/xcompile.build
 	etime=`perl -e 'print time();' 2>/dev/null || date +%s`

More information about the coreboot mailing list