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@amd.com> Signed-off-by: Zheng Bao <fishbaozi@gmail.com> Reviewed-on: http://review.coreboot.org/4512 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi <patrick@georgi-clan.de>
This commit is contained in:
parent
19803e7cb0
commit
691b313c28
|
@ -286,7 +286,7 @@ for PACKAGE in GMP MPFR MPC LIBELF GCC BINUTILS $PYTHON_PACKAGE \
|
||||||
archive="`eval echo '$'$archive`"
|
archive="`eval echo '$'$archive`"
|
||||||
dir=$PACKAGE"_DIR"
|
dir=$PACKAGE"_DIR"
|
||||||
dir="`eval echo '$'${dir}`"
|
dir="`eval echo '$'${dir}`"
|
||||||
test -d ${dir} || (
|
test -d ${dir} && test -f ${dir}/.unpack_sucess || (
|
||||||
printf " * `basename $archive`\n"
|
printf " * `basename $archive`\n"
|
||||||
FLAGS=zxf
|
FLAGS=zxf
|
||||||
suffix=`echo $archive | sed 's,.*\.,,'`
|
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` || \
|
$PATCH -s -N -p0 < `echo $patch` || \
|
||||||
printf "\n${RED}Failed $patch.${NC}\n"
|
printf "\n${RED}Failed $patch.${NC}\n"
|
||||||
done
|
done
|
||||||
|
touch ${dir}/.unpack_success
|
||||||
)
|
)
|
||||||
done
|
done
|
||||||
printf "Unpacked and patched ... "
|
printf "Unpacked and patched ... "
|
||||||
|
|
Loading…
Reference in New Issue