From f3345bd3b40a32aef80ae2920183c5f2fea02b21 Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Wed, 13 Nov 2013 15:49:42 +0100 Subject: [PATCH] Improved building of yosys-abc --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 9fdd8cfb4..a92c65257 100644 --- a/Makefile +++ b/Makefile @@ -27,6 +27,7 @@ GIT_REV := $(shell git rev-parse --short HEAD || echo UNKOWN) OBJS = kernel/version_$(GIT_REV).o ABCREV = 0f9e5488ced3 +ABCHGPULL = 1 -include Makefile.conf @@ -97,8 +98,11 @@ yosys-svgviewer: libs/svgviewer/*.h libs/svgviewer/*.cpp cp libs/svgviewer/svgviewer yosys-svgviewer abc: +ifeq ($(ABCHGPULL),1) 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 test: yosys -- 2.30.2