Skip to content

Commit

Permalink
add synlig build
Browse files Browse the repository at this point in the history
  • Loading branch information
timkpaine committed Sep 19, 2023
1 parent 42f10ec commit bb32a83
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 9 deletions.
19 changes: 10 additions & 9 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@

googletest/
capnproto/
json/
antlr/
uhdm/
surelog/
yosys/
simview/
verilator/
antlr
capnproto
googletest
json
simview
surelog
synlig
uhdm
verilator
yosys

*.deb
*.rpm
35 changes: 35 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ ANTLR_VERSION := 4.13.0
UHDM_VERSION := 1.74
SURELOG_VERSION := 1.74
YOSYS_VERSION := 0.33
SYNLIG_VERSION := 2023-09-19-a2c9ca8
VERILATOR_VERSION := 5.014
SIMVIEW_VERSION := 0.0.1

Expand Down Expand Up @@ -359,6 +360,40 @@ yosys/debian: ## build debian package for yosys
dpkg-deb -Z"gzip" --root-owner-group --build yosys/debian yosys_$(YOSYS_VERSION)_amd64.deb


# _ _
# | (_)
# ___ _ _ _ __ | |_ __ _
# / __| | | | '_ \| | |/ _` |
# \__ \ |_| | | | | | | (_| |
# |___/\__, |_| |_|_|_|\__, |
# __/ | __/ |
# |___/ |___/
#
# https://github.com/chipsalliance/synlig
#
.PHONY: synlig/libs synlig synlig/install synlig/debian

synlig/.git:
# TODO once merged
# git clone --depth 1 --branch $(SYNLIG_VERSION) https://github.com/chipsalliance/synlig.git
git clone --depth 1 --branch tkp/newyosys https://github.com/timkpaine/synlig.git

synlig/libs: synlig/.git
cd synlig/frontends/systemverilog && make -j $(NPROC)

synlig: synlig/libs ## build synlig

synlig/install: yosys/libs ## build and install synlig
cd synlig/frontends/systemverilog && sudo make PREFIX=$(or $(INSTALL_PREFIX),"/usr/local") install

synlig/debian: ## build debian package for synlig
mkdir -p synlig/debian/DEBIAN
printf "Package: synlig\nVersion: $(SYNLIG_VERSION)\nSection: utils\nPriority: optional\nArchitecture: amd64\nMaintainer: timkpaine <[email protected]>\nDescription: synlig\n" > synlig/debian/DEBIAN/control
$(MAKE) synlig/libs
$(MAKE) synlig/install INSTALL_PREFIX=./debian
dpkg-deb -Z"gzip" --root-owner-group --build synlig/debian synlig_$(SYNLIG_VERSION)_amd64.deb



#####################################################################################################################################################################################################################################################################################
# __ __ _ _ _
Expand Down

0 comments on commit bb32a83

Please sign in to comment.