From 2874c988024335f6325f51652809c020d2996e3f Mon Sep 17 00:00:00 2001 From: abejgonzalez Date: Thu, 6 May 2021 22:11:58 -0700 Subject: [PATCH] Add sim_files.f to fpga --- fpga/Makefile | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/fpga/Makefile b/fpga/Makefile index 1437d8bc..a7166347 100644 --- a/fpga/Makefile +++ b/fpga/Makefile @@ -73,6 +73,22 @@ default: $(mcs) fpga_dir := $(base_dir)/fpga/fpga-shells/$(FPGA_BRAND) fpga_common_script_dir := $(fpga_dir)/common/tcl +######################################################################################### +# setup misc. sim files +######################################################################################### +SIM_FILE_REQS += \ + $(ROCKETCHIP_RSRCS_DIR)/vsrc/EICG_wrapper.v + +# copy files but ignore *.h files in *.f (match vcs) +$(sim_files): $(SIM_FILE_REQS) | $(build_dir) + mkdir -p $(dir $(sim_files)) + cp -f $^ $(build_dir) + $(foreach file,\ + $^,\ + $(if $(filter %.h,$(file)),\ + ,\ + echo "$(addprefix $(build_dir)/, $(notdir $(file)))" >> $@;)) + ######################################################################################### # import other necessary rules and variables #########################################################################################