@@ -160,7 +160,7 @@ ifeq ($(OS), Haiku)
160160CXXFLAGS += -D_DEFAULT_SOURCE
161161endif
162162
163- YOSYS_VER := 0.52+63
163+ YOSYS_VER := 0.53+3
164164YOSYS_MAJOR := $(shell echo $(YOSYS_VER ) | cut -d'.' -f1)
165165YOSYS_MINOR := $(shell echo $(YOSYS_VER ) | cut -d'.' -f2 | cut -d'+' -f1)
166166YOSYS_COMMIT := $(shell echo $(YOSYS_VER ) | cut -d'+' -f2)
@@ -183,7 +183,7 @@ endif
183183OBJS = kernel/version_$(GIT_REV ) .o
184184
185185bumpversion :
186- sed -i " /^YOSYS_VER := / s/+[0-9][0-9]*$$ /+` git log --oneline fee39a3 .. | wc -l` /;" Makefile
186+ sed -i " /^YOSYS_VER := / s/+[0-9][0-9]*$$ /+` git log --oneline 53c22ab .. | wc -l` /;" Makefile
187187
188188ABCMKARGS = CC="$(CXX ) " CXX="$(CXX ) " ABC_USE_LIBSTDCXX=1 ABC_USE_NAMESPACE=abc VERBOSE=$(Q )
189189
@@ -396,6 +396,10 @@ ifeq ($(DISABLE_ABC_THREADS),1)
396396ABCMKARGS += "ABC_USE_NO_PTHREADS=1"
397397endif
398398
399+ ifeq ($(LINK_ABC ) ,1)
400+ ABCMKARGS += "ABC_USE_PIC=1"
401+ endif
402+
399403ifeq ($(DISABLE_SPAWN ) ,1)
400404CXXFLAGS += -DYOSYS_DISABLE_SPAWN
401405endif
@@ -787,7 +791,7 @@ $(PROGRAM_PREFIX)yosys-config: misc/yosys-config.in $(YOSYS_SRC)/Makefile
787791.PHONY : check-git-abc
788792
789793check-git-abc :
790- @if [ ! -d " $( YOSYS_SRC) /abc" ]; then \
794+ @if [ ! -d " $( YOSYS_SRC) /abc" ] && git -C " $( YOSYS_SRC ) " status > /dev/null 2>&1 ; then \
791795 echo " Error: The 'abc' directory does not exist." ; \
792796 echo " Initialize the submodule: Run 'git submodule update --init' to set up 'abc' as a submodule." ; \
793797 exit 1; \
@@ -813,6 +817,12 @@ check-git-abc:
813817 echo " 3. Initialize the submodule: Run 'git submodule update --init' to set up 'abc' as a submodule." ; \
814818 echo " 4. Reapply your changes: Move your saved changes back to the 'abc' directory, if necessary." ; \
815819 exit 1; \
820+ elif ! git -C " $( YOSYS_SRC) " status > /dev/null 2>&1 ; then \
821+ echo " $( realpath $( YOSYS_SRC) ) is not configured as a git repository, and 'abc' folder is missing." ; \
822+ echo " If you already have ABC, set 'ABCEXTERNAL' make variable to point to ABC executable." ; \
823+ echo " Otherwise, download release archive 'yosys.tar.gz' from https://github.com/YosysHQ/yosys/releases." ; \
824+ echo " ('Source code' archive does not contain submodules.)" ; \
825+ exit 1; \
816826 else \
817827 echo " Initialize the submodule: Run 'git submodule update --init' to set up 'abc' as a submodule." ; \
818828 exit 1; \
0 commit comments