aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorSalvador E. Tropea <salvador@inti.gob.ar>2016-10-13 17:34:15 -0300
committerSalvador E. Tropea <salvador@inti.gob.ar>2016-10-13 17:34:15 -0300
commit77ce8139a5428961f95a4eee4983fb932dae002b (patch)
tree85d3b9866fd90127ccd68aa059870b3dd58deeee /Makefile
parentee91350adda329be735c437d7319acd68e503cd8 (diff)
downloadyosys-77ce8139a5428961f95a4eee4983fb932dae002b.tar.gz
yosys-77ce8139a5428961f95a4eee4983fb932dae002b.tar.bz2
yosys-77ce8139a5428961f95a4eee4983fb932dae002b.zip
Added a new configuration variable GIT_REV_WHERE
It determines from where we get the gits SHA1 value. By default is HEAD, suitable for Clifford, but for Debian we can define it as upstream/master
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 1785904a5..ff0af4c1e 100644
--- a/Makefile
+++ b/Makefile
@@ -72,8 +72,9 @@ else
LDLIBS += -lrt
endif
+GIT_REV_WHERE ?= HEAD
YOSYS_VER := 0.6+$(shell test -e .git && { git log --author=clifford@clifford.at --oneline 5869d26da021.. | wc -l; })
-GIT_REV := $(shell cd $(YOSYS_SRC) && git rev-parse --short HEAD 2> /dev/null || echo UNKNOWN)
+GIT_REV := $(shell cd $(YOSYS_SRC) && git rev-parse --short $(GIT_REV_WHERE) 2> /dev/null || echo UNKNOWN)
OBJS = kernel/version_$(GIT_REV).o
# set 'ABCREV = default' to use abc/ as it is