@@ -147,13 +147,13 @@ YOSYS_VER := 0.32
147
147
# tarballs generated with git-archive(1) using .gitattributes. The git repo
148
148
# will have this file in its unexpanded form tough, in which case we fall
149
149
# back to calling git directly.
150
- TARBALL_GIT_REV := $(shell cat $(YOSYS_SRC ) /.gitcommit)
151
- ifeq ($(TARBALL_GIT_REV ) ,$$Format :% h$$)
152
- GIT_REV := $(shell GIT_DIR=$(YOSYS_SRC ) /.git git rev-parse --short=9 HEAD || echo UNKNOWN)
153
- else
154
- GIT_REV := $(TARBALL_GIT_REV )
155
- endif
156
-
150
+ # TARBALL_GIT_REV := $(shell cat $(YOSYS_SRC)/.gitcommit)
151
+ # ifeq ($(TARBALL_GIT_REV),$$Format:%h$$)
152
+ # GIT_REV := $(shell GIT_DIR=$(YOSYS_SRC)/.git git rev-parse --short=9 HEAD || echo UNKNOWN)
153
+ # else
154
+ # GIT_REV := $(TARBALL_GIT_REV)
155
+ # endif
156
+ GIT_REV := UNKNOWN
157
157
OBJS = kernel/version_$(GIT_REV ) .o
158
158
159
159
bumpversion :
@@ -919,6 +919,8 @@ clean-unit-test:
919
919
install : $(TARGETS ) $(EXTRA_TARGETS )
920
920
$(INSTALL_SUDO ) mkdir -p $(DESTDIR )$(BINDIR )
921
921
$(INSTALL_SUDO ) cp $(filter-out libyosys.so,$(TARGETS ) ) $(DESTDIR )$(BINDIR )
922
+ # only strip if not debugging
923
+ ifneq ($(ENABLE_DEBUG ) ,1)
922
924
ifneq ($(filter $(PROGRAM_PREFIX ) yosys,$(TARGETS ) ) ,)
923
925
$(INSTALL_SUDO) $(STRIP) -S $(DESTDIR)$(BINDIR)/$(PROGRAM_PREFIX)yosys
924
926
endif
@@ -927,6 +929,7 @@ ifneq ($(filter $(PROGRAM_PREFIX)yosys-abc,$(TARGETS)),)
927
929
endif
928
930
ifneq ($(filter $(PROGRAM_PREFIX ) yosys-filterlib,$(TARGETS ) ) ,)
929
931
$(INSTALL_SUDO) $(STRIP) $(DESTDIR)$(BINDIR)/$(PROGRAM_PREFIX)yosys-filterlib
932
+ endif
930
933
endif
931
934
$(INSTALL_SUDO) mkdir -p $(DESTDIR)$(DATDIR)
932
935
$(INSTALL_SUDO) cp -r share/. $(DESTDIR)$(DATDIR)/.
0 commit comments