[coreboot-gerrit] Patch set updated for coreboot: 9579680 crossgcc: Continue to unpack archive if it was incomplete

Zheng Bao (zheng.bao@amd.com) gerrit at coreboot.org
Mon Dec 9 07:33:17 CET 2013


Zheng Bao (zheng.bao at amd.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/4512

-gerrit

commit 95796805c32c462837f511150da4c576347df487
Author: Zheng Bao <fishbaozi at gmail.com>
Date:   Mon Dec 9 14:09:07 2013 +0800

    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 <zheng.bao at amd.com>
    Signed-off-by: Zheng Bao <fishbaozi at gmail.com>
---
 util/crossgcc/buildgcc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/util/crossgcc/buildgcc b/util/crossgcc/buildgcc
index ae4e06f..126be58 100755
--- a/util/crossgcc/buildgcc
+++ b/util/crossgcc/buildgcc
@@ -287,7 +287,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,.*\.,,'`
@@ -301,6 +301,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 ... "



More information about the coreboot-gerrit mailing list