diff options
author | Zheng Bao <fishbaozi@gmail.com> | 2013-02-06 18:04:40 +0800 |
---|---|---|
committer | Stefan Reinauer <stefan.reinauer@coreboot.org> | 2013-02-06 19:25:43 +0100 |
commit | 30b895f7e2809e1c624789f909e5cf0cc96f520d (patch) | |
tree | 64b08f5babaa44f3253ae9d6a96258a1f482b252 /util | |
parent | 315dec48ea6ae4f06dc3a0751dfa2ddf9ff55fba (diff) | |
download | coreboot-30b895f7e2809e1c624789f909e5cf0cc96f520d.tar.xz |
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 <zheng.bao@amd.com>
Signed-off-by: zbao <fishbaozi@gmail.com>
Signed-off-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-on: http://review.coreboot.org/2247
Tested-by: build bot (Jenkins)
Reviewed-by: Patrick Georgi <patrick@georgi-clan.de>
Diffstat (limited to 'util')
-rwxr-xr-x | util/crossgcc/buildgcc | 3 |
1 files changed, 3 insertions, 0 deletions
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 |