aboutsummaryrefslogtreecommitdiff
path: root/Makefile.inc
diff options
context:
space:
mode:
authorPatrick Georgi <pgeorgi@chromium.org>2017-01-19 23:20:14 +0100
committerPatrick Georgi <pgeorgi@google.com>2017-01-24 23:22:56 +0100
commit0ffef882d8357b1e14e983829e0a26415ab43b48 (patch)
tree232716a26ea823a947dc03addbdbb72ac2f6a22f /Makefile.inc
parent5e949faec149c8716b6cb92ab3518d04610f7d1d (diff)
build system: don't run xcompile or git for %clean/%config targets
It takes a long time for no gain: We don't need to update the submodules, we don't need to fetch the revision, we don't need to find the compilers, when all we want to do is to manipulate the .config file or clean the build directory. Change-Id: Ie1bd446a0d49a81e3cccdb56fe2c43ffd83b6c98 Signed-off-by: Patrick Georgi <pgeorgi@chromium.org> Reviewed-on: https://review.coreboot.org/18182 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Martin Roth <martinroth@google.com>
Diffstat (limited to 'Makefile.inc')
-rw-r--r--Makefile.inc4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile.inc b/Makefile.inc
index a477618176..9aec8a7a7e 100644
--- a/Makefile.inc
+++ b/Makefile.inc
@@ -13,7 +13,11 @@
## GNU General Public License for more details.
##
+ifneq ($(NOCOMPILE),1)
GIT:=$(shell [ -e "$(top)/.git" ] && command -v git)
+else
+GIT:=
+endif
#######################################################################
# normalize Kconfig variables in a central place