Improved building of yosys-abc

This commit is contained in:
Clifford Wolf 2013-11-13 15:49:42 +01:00
parent a694324a75
commit f3345bd3b4
1 changed files with 5 additions and 1 deletions

View File

@ -27,6 +27,7 @@ GIT_REV := $(shell git rev-parse --short HEAD || echo UNKOWN)
OBJS = kernel/version_$(GIT_REV).o OBJS = kernel/version_$(GIT_REV).o
ABCREV = 0f9e5488ced3 ABCREV = 0f9e5488ced3
ABCHGPULL = 1
-include Makefile.conf -include Makefile.conf
@ -97,8 +98,11 @@ yosys-svgviewer: libs/svgviewer/*.h libs/svgviewer/*.cpp
cp libs/svgviewer/svgviewer yosys-svgviewer cp libs/svgviewer/svgviewer yosys-svgviewer
abc: abc:
ifeq ($(ABCHGPULL),1)
test -d abc || hg clone https://bitbucket.org/alanmi/abc abc test -d abc || hg clone https://bitbucket.org/alanmi/abc abc
cd abc && hg pull && hg update -r $(ABCREV) && make cd abc && hg pull && hg update -r $(ABCREV)
endif
cd abc && $(MAKE)
cp abc/abc yosys-abc cp abc/abc yosys-abc
test: yosys test: yosys