From 30b895f7e2809e1c624789f909e5cf0cc96f520d Mon Sep 17 00:00:00 2001 From: Zheng Bao Date: Wed, 6 Feb 2013 18:04:40 +0800 Subject: crossgcc: Save the script itself when cross build is over. In case that the new toolchains don't work well, we can trace back and reproduce the old tools by checking the xgcc folder. It is useful when my team members need to get my old toolchains on their own host machines. Change-Id: I54e4bc6afcfbbf622165af6eae27bbb6efc2e8cc Signed-off-by: Zheng Bao Signed-off-by: zbao Signed-off-by: Paul Menzel Reviewed-on: http://review.coreboot.org/2247 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi --- util/crossgcc/buildgcc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'util/crossgcc') diff --git a/util/crossgcc/buildgcc b/util/crossgcc/buildgcc index c69e7cd219..eaff24da97 100755 --- a/util/crossgcc/buildgcc +++ b/util/crossgcc/buildgcc @@ -595,6 +595,9 @@ test -r $IASL_DIR/generate/unix/.failed && printf "${RED}failed${NC}\n" || \ test -r $IASL_DIR/generate/unix/.failed && exit 1 fi +rm -f $DESTDIR$TARGETDIR/$0.commit.* +cp $0 $DESTDIR$TARGETDIR/"$0.commit.`git describe`" + if [ $SAVETEMPS -eq 0 ]; then printf "Cleaning up... " rm -rf ${GMP_DIR} build-gmp -- cgit v1.2.3