aboutsummaryrefslogtreecommitdiff
path: root/Makefile.inc
diff options
context:
space:
mode:
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