summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 20b58af..5b6202d 100644
--- a/Makefile
+++ b/Makefile
@@ -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)