Makefile: Fix synthesis dependencies
Using -s /dev/stdin will add a dependency on it, and /dev/stdin is always considered newer than the synthesis output. Just use multiple -p options. Signed-off-by: Sean Anderson <seanga2@gmail.com>
This commit is contained in:
parent
d98e7b3adf
commit
0511de1e9c
9
Makefile
9
Makefile
|
@ -20,11 +20,10 @@ log:
|
||||||
|
|
||||||
LIBDIRS := rtl lib/verilog-lfsr/rtl
|
LIBDIRS := rtl lib/verilog-lfsr/rtl
|
||||||
%.synth.json: %.v | log
|
%.synth.json: %.v | log
|
||||||
( \
|
$(SYNTH) -q -E $@.d -b json -o $@ -l log/$(*F).synth \
|
||||||
echo "read_verilog -sv $<"; \
|
-p "read_verilog -sv $<" \
|
||||||
echo "hierarchy $(addprefix -libdir ,$(LIBDIRS) $(<D))"; \
|
-p "hierarchy $(addprefix -libdir ,$(LIBDIRS) $(<D))" \
|
||||||
echo "synth_ice40 -top $(*F)"; \
|
-p "synth_ice40 -top $(*F)"
|
||||||
) | $(SYNTH) -q -E $@.d -s /dev/stdin -b json -o $@ -l log/$(*F).synth
|
|
||||||
|
|
||||||
define run-jsontov =
|
define run-jsontov =
|
||||||
( grep timescale $*.v; $(SYNTH) -q -p "write_verilog -defparam -noattr" -f json $< ) > $@
|
( grep timescale $*.v; $(SYNTH) -q -p "write_verilog -defparam -noattr" -f json $< ) > $@
|
||||||
|
|
Loading…
Reference in New Issue