Skip to content

Commit 0edf6df

Browse files
[Yosys][Warnings] Fixed Fatal Not Git Repo Warning
Fixed a warning where "fatal: not a git repository: './/.git' was being printed during builds of VPR. This is caused by Yosys being included as a subtree instead of a git submodule. The Makefile in Yosys is trying to get the current version of git for Yosys but it cannot do it since it is not a git repo. Just commented out the line causing the warning for now.
1 parent 7df2340 commit 0edf6df

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

yosys/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,8 @@ YOSYS_VER := 0.32
149149
# back to calling git directly.
150150
TARBALL_GIT_REV := $(shell cat $(YOSYS_SRC)/.gitcommit)
151151
ifeq ($(TARBALL_GIT_REV),$$Format:%h$$)
152-
GIT_REV := $(shell GIT_DIR=$(YOSYS_SRC)/.git git rev-parse --short=9 HEAD || echo UNKNOWN)
152+
#GIT_REV := $(shell GIT_DIR=$(YOSYS_SRC)/.git git rev-parse --short=9 HEAD || echo UNKNOWN)
153+
GIT_REV := $(shell echo UNKNOWN)
153154
else
154155
GIT_REV := $(TARBALL_GIT_REV)
155156
endif

0 commit comments

Comments
 (0)