mirror of https://github.com/YosysHQ/yosys.git
Merge pull request #3331 from YosysHQ/git_rev_fix
work around the new(ish) git safe.directory restrictions
This commit is contained in:
commit
e47cfe277e
2
Makefile
2
Makefile
|
@ -130,7 +130,7 @@ LDLIBS += -lrt
|
|||
endif
|
||||
|
||||
YOSYS_VER := 0.17+33
|
||||
GIT_REV := $(shell git -C $(YOSYS_SRC) rev-parse --short HEAD 2> /dev/null || echo UNKNOWN)
|
||||
GIT_REV := $(shell git ls-remote $(YOSYS_SRC) HEAD -q | $(AWK) 'BEGIN {R = "UNKNOWN"}; ($$2 == "HEAD") {R = substr($$1, 1, 9); exit} END {print R}')
|
||||
OBJS = kernel/version_$(GIT_REV).o
|
||||
|
||||
bumpversion:
|
||||
|
|
Loading…
Reference in New Issue