From 9b326b2904897677a63c06e55efcd16ef5e7aaa6 Mon Sep 17 00:00:00 2001 From: Bebbo Date: Sat, 16 Jun 2018 22:36:48 +0200 Subject: [PATCH] make binutils shallow and clean binutils on repo switch --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 48f5aec..b697ecc 100644 --- a/Makefile +++ b/Makefile @@ -149,8 +149,9 @@ update-binutils: projects/binutils/configure if [[ "$${a[1]}" != "$(BINUTILS_GIT)" ]]; then \ rm -rf projects/binutils; \ $(MAKE) projects/binutils/configure; \ + $(MAKE) clean-binutils; \ fi - cd projects/binutils && git pull + cd projects/binutils && export DEPTH=16; while true; do echo "trying depth=$$DEPTH"; git pull --depth $$DEPTH && break; export DEPTH=$$(($$DEPTH+$$DEPTH));done update-fd2fsd: projects/fd2sfd/configure cd projects/fd2sfd && git pull @@ -263,7 +264,7 @@ build/binutils/gas/Makefile: projects/binutils/configure projects/binutils/configure: @mkdir -p projects - cd projects && git clone -b $(BINUTILS_BRANCH) $(BINUTILS_GIT) binutils + cd projects && git clone -b $(BINUTILS_BRANCH) --depth 16 $(BINUTILS_GIT) binutils # =================================================