mirror of https://github.com/YosysHQ/yosys.git
Change way to get commit sha
This commit is contained in:
parent
166a175983
commit
87149b3f8e
2
Makefile
2
Makefile
|
@ -130,7 +130,7 @@ LDLIBS += -lrt
|
||||||
endif
|
endif
|
||||||
|
|
||||||
YOSYS_VER := 0.17+33
|
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
|
OBJS = kernel/version_$(GIT_REV).o
|
||||||
|
|
||||||
bumpversion:
|
bumpversion:
|
||||||
|
|
Loading…
Reference in New Issue