mirror of https://github.com/YosysHQ/yosys.git
Make pmgen support files more generic
This commit is contained in:
parent
408161ea3a
commit
8d00b9ef7e
|
@ -1 +1 @@
|
|||
/ice40_dsp_pm.h
|
||||
*_pm.h
|
||||
|
|
|
@ -1,8 +1,11 @@
|
|||
OBJS += passes/pmgen/ice40_dsp.o
|
||||
PMG_SRC = $(wildcard passes/pmgen/*.pmg)
|
||||
PMG_OBJS += $(patsubst %.pmg, %.o, $(PMG_SRC))
|
||||
OBJS += $(PMG_OBJS)
|
||||
|
||||
passes/pmgen/ice40_dsp.o: passes/pmgen/ice40_dsp_pm.h
|
||||
EXTRA_OBJS += passes/pmgen/ice40_dsp_pm.h
|
||||
.SECONDARY: passes/pmgen/ice40_dsp_pm.h
|
||||
$(PMG_OBJS): %.o: %_pm.h
|
||||
|
||||
passes/pmgen/ice40_dsp_pm.h: passes/pmgen/pmgen.py passes/pmgen/ice40_dsp.pmg
|
||||
EXTRA_OBJS += $(patsubst %.pmg, %_pm.h, $(PMG_SRC))
|
||||
.SECONDARY: $(EXTRA_OBJS)
|
||||
|
||||
%_pm.h: passes/pmgen/pmgen.py %.pmg
|
||||
$(P) mkdir -p passes/pmgen && python3 $^ $@
|
||||
|
|
Loading…
Reference in New Issue