mirror of
https://github.com/antonblanchard/microwatt.git
synced 2026-04-14 07:29:47 +00:00
Build to tmp file so nextpnr errors don't confuse make
nextpnr will leave an output file around even when it errors out, so build to a tmp file and move it when we succeed so we don't confuse make. Signed-off-by: Michael Neuling <mikey@neuling.org>
This commit is contained in:
3
Makefile
3
Makefile
@@ -187,7 +187,8 @@ microwatt-verilator: microwatt.v verilator/microwatt-verilator.cpp verilator/uar
|
||||
@cp -f obj_dir/microwatt-verilator microwatt-verilator
|
||||
|
||||
microwatt_out.config: microwatt.json $(LPF)
|
||||
$(NEXTPNR) --json $< --lpf $(LPF) --textcfg $@ $(NEXTPNR_FLAGS) --package $(PACKAGE)
|
||||
$(NEXTPNR) --json $< --lpf $(LPF) --textcfg $@.tmp $(NEXTPNR_FLAGS) --package $(PACKAGE)
|
||||
mv -f $@.tmp $@
|
||||
|
||||
microwatt.bit: microwatt_out.config
|
||||
$(ECPPACK) --svf microwatt.svf $< $@
|
||||
|
||||
Reference in New Issue
Block a user