summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/Makefile.sources5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Makefile.sources b/lib/Makefile.sources
index f8a1b928..a19ffd92 100644
--- a/lib/Makefile.sources
+++ b/lib/Makefile.sources
@@ -60,6 +60,10 @@ libintel_tools_la_SOURCES = \
.PHONY: version.h.tmp
+if SKIP_GIT_HASH
+$(IGT_LIB_PATH)/version.h.tmp:
+ @echo '#define IGT_GIT_SHA1 "git"' >> $@
+else
$(IGT_LIB_PATH)/version.h.tmp:
@touch $@
@if test -d $(GPU_TOOLS_PATH)/.git; then \
@@ -73,6 +77,7 @@ $(IGT_LIB_PATH)/version.h.tmp:
else \
echo '#define IGT_GIT_SHA1 "NOT-GIT"' ; \
fi >> $@
+endif # SKIP_GIT_HASH
$(IGT_LIB_PATH)/version.h: $(IGT_LIB_PATH)/version.h.tmp