Add yosys-config --datdir workaround

The yosys-git AUR package doesn't set the PREFIX variable correctly.
This commit is contained in:
Graham Edgecombe 2017-12-15 18:35:26 +00:00
parent 9f8ca8c496
commit d97f8c5e8e
2 changed files with 3 additions and 2 deletions

View file

@ -6,4 +6,4 @@ stages:
build: build:
stage: build stage: build
script: script:
- make syntax time stat - make YS_ICE40=/usr/share/yosys/ice40/cells_sim.v syntax time stat

View file

@ -4,6 +4,7 @@ SRC = $(sort $(wildcard *.sv) $(PLL))
TOP = top TOP = top
SV = $(TOP).sv SV = $(TOP).sv
YS = $(TOP).ys YS = $(TOP).ys
YS_ICE40 = `yosys-config --datdir/ice40/cells_sim.v`
BLIF = $(TOP).blif BLIF = $(TOP).blif
ASC_SYN = $(TOP)_syn.asc ASC_SYN = $(TOP)_syn.asc
ASC = $(TOP).asc ASC = $(TOP).asc
@ -43,7 +44,7 @@ $(BLIF): $(YS) $(SRC) progmem_syn.hex
yosys $(QUIET) -s $< yosys $(QUIET) -s $<
syntax: $(SRC) progmem_syn.hex syntax: $(SRC) progmem_syn.hex
iverilog -Wall -t null -g2012 `yosys-config --datdir/ice40/cells_sim.v` $(SV) iverilog -Wall -t null -g2012 $(YS_ICE40) $(SV)
$(ASC_SYN): $(BLIF) $(PCF) $(ASC_SYN): $(BLIF) $(PCF)
arachne-pnr $(QUIET) -d $(DEVICE) -P $(PACKAGE) -o $@ -p $(PCF) $< arachne-pnr $(QUIET) -d $(DEVICE) -P $(PACKAGE) -o $@ -p $(PCF) $<