Skip to content

Commit

Permalink
Remove git clean invocation from DRAM model generation (#580)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbiancolin authored Nov 28, 2022
1 parent 2a36c4d commit 2376fb7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion hdk/common/verif/scripts/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,17 @@ DEPS_FILE := $(HDK_SHELL_DESIGN_DIR)/ip/ddr4_core/ddr4_core.xci
DEPS_FILE += $(HDK_COMMON_DIR)/verif/scripts/init.tcl
DEPS_FILE += $(HDK_COMMON_DIR)/verif/scripts/init.sh

CLEAN_TARGETS += $(HDK_COMMON_DIR)/verif/scripts/ddr4_core_ip_report.txt
CLEAN_TARGETS += $(HDK_COMMON_DIR)/verif/scripts/tmp/
CLEAN_TARGETS += $(wildcard $(HDK_COMMON_DIR)/verif/scripts/vivado*.jou)
CLEAN_TARGETS += $(wildcard $(HDK_COMMON_DIR)/verif/scripts/vivado*.log)

all: $(DONE_FILE)

$(DONE_FILE): $(DEPS_FILE)
@ echo "INFO: Building in $(shell dirname $@)"
@ echo "INFO: This could take 5-10 minutes, please be patient!"
@ git clean -fXdq $(shell dirname $@)
@ rm -rf $(CLEAN_TARGETS)
@ cd $(shell dirname $@)\
&& ./init.sh $(MODEL_DIR)\
&& echo "INFO: DDR4 model build passed."\
Expand Down

0 comments on commit 2376fb7

Please sign in to comment.