Fixed version string for out-of-tree builds

This commit is contained in:
Clifford Wolf 2016-10-14 17:18:18 +02:00
parent 512f93f866
commit 7fc69b3095
1 changed files with 1 additions and 1 deletions

View File

@ -72,7 +72,7 @@ else
LDLIBS += -lrt
endif
YOSYS_VER := 0.6+$(shell test -e .git && { git log --author=clifford@clifford.at --oneline 5869d26da021.. | wc -l; })
YOSYS_VER := 0.6+$(shell cd $(YOSYS_SRC) && 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)
OBJS = kernel/version_$(GIT_REV).o