From 691b313c2807a5e9d293e9a520f951ea1319bb8f Mon Sep 17 00:00:00 2001 From: Zheng Bao Date: Mon, 9 Dec 2013 14:09:07 +0800 Subject: crossgcc: Continue to unpack archive if it was incomplete If the unpacking was interrupt by Ctrl-C, probably part of an archive is unpacked. If we run buildgcc again, the incomplete folder would be and skipped. We can create a file to tell the script the unpacking is done. Change-Id: Id9eb74d119e22b62c70dca9b38a92c3dbdf0f64c Signed-off-by: Zheng Bao Signed-off-by: Zheng Bao Reviewed-on: http://review.coreboot.org/4512 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi --- util/crossgcc/buildgcc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'util') diff --git a/util/crossgcc/buildgcc b/util/crossgcc/buildgcc index 3754837005..c668ad2a36 100755 --- a/util/crossgcc/buildgcc +++ b/util/crossgcc/buildgcc @@ -286,7 +286,7 @@ for PACKAGE in GMP MPFR MPC LIBELF GCC BINUTILS $PYTHON_PACKAGE \ archive="`eval echo '$'$archive`" dir=$PACKAGE"_DIR" dir="`eval echo '$'${dir}`" - test -d ${dir} || ( + test -d ${dir} && test -f ${dir}/.unpack_sucess || ( printf " * `basename $archive`\n" FLAGS=zxf suffix=`echo $archive | sed 's,.*\.,,'` @@ -300,6 +300,7 @@ for PACKAGE in GMP MPFR MPC LIBELF GCC BINUTILS $PYTHON_PACKAGE \ $PATCH -s -N -p0 < `echo $patch` || \ printf "\n${RED}Failed $patch.${NC}\n" done + touch ${dir}/.unpack_success ) done printf "Unpacked and patched ... " -- cgit v1.2.3