vlsi/Makefile: truncate file SRAM_GENERATOR_CONF

previously the target would append, not truncate
the file, which could lead to duplicate yaml entries
in that file when the target was re-run.
This commit is contained in:
Øyvind Harboe
2024-02-01 07:33:37 +01:00
parent 50d97709d4
commit 99d82673d2

View File

@@ -100,7 +100,7 @@ $(SMEMS_HAMMER): $(TOP_SMEMS_FILE)
$(SRAM_GENERATOR_CONF): $(SMEMS_HAMMER) $(SRAM_GENERATOR_CONF): $(SMEMS_HAMMER)
mkdir -p $(dir $@) mkdir -p $(dir $@)
echo "vlsi.inputs.sram_parameters: '$(SMEMS_HAMMER)'" >> $@ echo "vlsi.inputs.sram_parameters: '$(SMEMS_HAMMER)'" > $@
echo "vlsi.inputs.sram_parameters_meta: [\"transclude\", \"json2list\"]" >> $@ echo "vlsi.inputs.sram_parameters_meta: [\"transclude\", \"json2list\"]" >> $@
$(SRAM_CONF): $(SRAM_GENERATOR_CONF) $(SRAM_CONF): $(SRAM_GENERATOR_CONF)