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@georgi-clan.de> Reviewed-on: http://review.coreboot.org/405 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
This commit is contained in:
parent
641dd71376
commit
8e26465645
|
@ -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`
|
||||
|
|
Loading…
Reference in New Issue