summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorzbao <fishbaozi@gmail.com>2015-08-26 22:00:31 -0400
committerZheng Bao <zheng.bao@amd.com>2015-08-31 06:44:57 +0000
commitff3f15cd4dcd631e982332c9912a07c28ee42def (patch)
tree20028bf38a6a227a19e60340448e91d8801462fa /util
parent1cb1c924c58d952ae197ba1508d0dc7c9bfda0b4 (diff)
downloadcoreboot-ff3f15cd4dcd631e982332c9912a07c28ee42def.tar.xz
buildgcc: remove getopt when doing clean.
Change-Id: I9f59a00e735f39df813b2216290da62eea3c595d Signed-off-by: Zheng Bao <zheng.bao@amd.com> Signed-off-by: Zheng Bao <fishbaozi@gmail.com> Reviewed-on: http://review.coreboot.org/11372 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'util')
-rw-r--r--util/crossgcc/Makefile1
-rwxr-xr-xutil/crossgcc/buildgcc1
2 files changed, 2 insertions, 0 deletions
diff --git a/util/crossgcc/Makefile b/util/crossgcc/Makefile
index b4b0223a45..b1fba4ab02 100644
--- a/util/crossgcc/Makefile
+++ b/util/crossgcc/Makefile
@@ -76,6 +76,7 @@ clean_tempfiles:
rm -rf llvm-* clang-tools-* cfe-* compiler-rt-*
rm -rf acpica-*
rm -rf gdb-*
+ rm -f getopt
clean: clean_tempfiles
rm -rf xgcc
diff --git a/util/crossgcc/buildgcc b/util/crossgcc/buildgcc
index f39c4b6fa9..f4522edcdd 100755
--- a/util/crossgcc/buildgcc
+++ b/util/crossgcc/buildgcc
@@ -280,6 +280,7 @@ cleanup()
for package in $PACKAGES; do
rm -rf build-${TARGETARCH}-$package $(eval echo \$$package"_DIR")
done
+ rm -f getopt
printf "${green}ok${NC}\n"
}