mirror of
https://github.com/openhwgroup/cvw
synced 2025-02-02 17:55:19 +00:00
modified synth makefile to handle derived configs
This commit is contained in:
parent
6ed2376582
commit
b487477ecd
@ -51,7 +51,8 @@ configs: $(CONFIG)
|
|||||||
$(CONFIG):
|
$(CONFIG):
|
||||||
@echo $(CONFIG)
|
@echo $(CONFIG)
|
||||||
cp -r $(OLDCONFIGDIR)/shared/*.vh $(CONFIGDIR)
|
cp -r $(OLDCONFIGDIR)/shared/*.vh $(CONFIGDIR)
|
||||||
cp -r $(OLDCONFIGDIR)/$(CONFIG)/* $(CONFIGDIR)
|
# cp -r $(OLDCONFIGDIR)/$(CONFIG)/* $(CONFIGDIR)
|
||||||
|
cp -r $(OLDCONFIGDIR)/deriv/$(CONFIG)/* $(CONFIGDIR)
|
||||||
|
|
||||||
# adjust DTIM and IROM to reasonable values depending on config
|
# adjust DTIM and IROM to reasonable values depending on config
|
||||||
ifneq ($(filter $(CONFIG), $(DIRS32)),)
|
ifneq ($(filter $(CONFIG), $(DIRS32)),)
|
||||||
@ -61,8 +62,8 @@ else ifneq ($(filter $(CONFIG), $(DIRS64)),)
|
|||||||
sed -i "s/DTIM_RANGE.*/DTIM_RANGE = 56\'h01FF;/g" $(CONFIGDIR)/config.vh
|
sed -i "s/DTIM_RANGE.*/DTIM_RANGE = 56\'h01FF;/g" $(CONFIGDIR)/config.vh
|
||||||
sed -i "s/IROM_RANGE.*/IROM_RANGE = 56\'h01FF;/g" $(CONFIGDIR)/config.vh
|
sed -i "s/IROM_RANGE.*/IROM_RANGE = 56\'h01FF;/g" $(CONFIGDIR)/config.vh
|
||||||
else
|
else
|
||||||
$(info $(CONFIG) does not exist in $(DIRS32) or $(DIRS64))
|
$(info $(CONFIG) does not exist in $(DIRS32) or $(DIRS64))
|
||||||
@echo "Config not in list, RAM_RANGE will be unmodified"
|
@echo "Config not in list, RAM_RANGE will be unmodified"
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# if USESRAM = 1, set that in the config file, otherwise reduce sizes
|
# if USESRAM = 1, set that in the config file, otherwise reduce sizes
|
||||||
|
Loading…
Reference in New Issue
Block a user