Makefile: Retry P&R a few times
P&R can be a bit flakey. Retry a few times to get a good seed before failing. Signed-off-by: Sean Anderson <seanga2@gmail.com>
This commit is contained in:
parent
7c9ac42988
commit
fc3cce02ea
9
Makefile
9
Makefile
|
@ -74,10 +74,17 @@ endef
|
|||
%.sdf %.place.json &: %.synth.json | log
|
||||
$(run-pnr)
|
||||
|
||||
PNR_RETRIES := 10
|
||||
|
||||
%.asc: PNRARGS += --pcf $*.pcf --asc $@ -r
|
||||
%.asc: LOG_EXT := asc
|
||||
%.asc: %.synth.json %.pcf | log
|
||||
$(run-pnr)
|
||||
for i in $$(seq $(PNR_RETRIES)); do \
|
||||
if $(run-pnr); then \
|
||||
exit 0; \
|
||||
fi \
|
||||
done; \
|
||||
exit 1
|
||||
|
||||
%.bin: rtl/%.asc
|
||||
$(ICEPACK) $< $@
|
||||
|
|
Loading…
Reference in New Issue