diff options
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -44,13 +44,17 @@ clean: # synthesize %.json: %.v - sh resolvedeps.sh $< +# sh resolvedeps.sh $< +# only used for dep-generation, output file is needed for dep file, but otherwise useless +# this must happen *without* synth_gowin, as this includes additional files, which ruin the depfile. + yosys $< -E $*.dep -o $@ && rm -f $@ yosys -p "read_verilog $<; synth_gowin -top $* -json $@" $(YOSYS_OPTS) # because yosys -E is buggy, or behaves differently than expected, # use gawk to force-create deps. %.dep: %.v - sh resolvedeps.sh $< +# sh resolvedeps.sh $< + yosys $< -E $*.dep -o $*.json && rm -f $*.json # place and route? %.pnr.json: %.json $(CST) |
