1
0
mirror of synced 2026-02-26 08:54:54 +00:00

Change way to get commit sha

This commit is contained in:
Jannis Harder
2022-05-23 17:04:07 +02:00
committed by Miodrag Milanovic
parent 166a175983
commit 87149b3f8e

View File

@@ -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: