From bd3fa6abfd00ca58a270e0aac252bd0e6242d651 Mon Sep 17 00:00:00 2001 From: Alex Forencich Date: Tue, 31 Aug 2021 20:03:33 -0700 Subject: [PATCH] Update vivado.mk --- fpga/mqnic/ADM_PCIE_9V3/fpga_100g/common/vivado.mk | 14 ++++++++------ fpga/mqnic/ADM_PCIE_9V3/fpga_10g/common/vivado.mk | 14 ++++++++------ fpga/mqnic/ADM_PCIE_9V3/fpga_25g/common/vivado.mk | 14 ++++++++------ fpga/mqnic/AU200/fpga_100g/common/vivado.mk | 14 ++++++++------ fpga/mqnic/AU200/fpga_10g/common/vivado.mk | 14 ++++++++------ fpga/mqnic/AU250/fpga_100g/common/vivado.mk | 14 ++++++++------ fpga/mqnic/AU250/fpga_10g/common/vivado.mk | 14 ++++++++------ fpga/mqnic/AU280/fpga_100g/common/vivado.mk | 14 ++++++++------ fpga/mqnic/AU280/fpga_10g/common/vivado.mk | 14 ++++++++------ fpga/mqnic/AU50/fpga_100g/common/vivado.mk | 14 ++++++++------ fpga/mqnic/AU50/fpga_10g/common/vivado.mk | 14 ++++++++------ fpga/mqnic/ExaNIC_X10/fpga/common/vivado.mk | 14 ++++++++------ fpga/mqnic/ExaNIC_X25/fpga_10g/common/vivado.mk | 14 ++++++++------ fpga/mqnic/NetFPGA_SUME/fpga/common/vivado.mk | 14 ++++++++------ fpga/mqnic/VCU108/fpga_10g/common/vivado.mk | 14 ++++++++------ fpga/mqnic/VCU118/fpga_100g/common/vivado.mk | 14 ++++++++------ fpga/mqnic/VCU118/fpga_10g/common/vivado.mk | 14 ++++++++------ fpga/mqnic/VCU1525/fpga_100g/common/vivado.mk | 14 ++++++++------ fpga/mqnic/VCU1525/fpga_10g/common/vivado.mk | 14 ++++++++------ fpga/mqnic/ZCU106/fpga_pcie/common/vivado.mk | 14 ++++++++------ fpga/mqnic/fb2CG/fpga_100g/common/vivado.mk | 14 ++++++++------ fpga/mqnic/fb2CG/fpga_10g/common/vivado.mk | 14 ++++++++------ fpga/mqnic/fb2CG/fpga_25g/common/vivado.mk | 14 ++++++++------ .../ADM_PCIE_9V3/fpga_10g/common/vivado.mk | 14 ++++++++------ fpga/mqnic_tdma/ExaNIC_X10/fpga/common/vivado.mk | 14 ++++++++------ fpga/mqnic_tdma/VCU108/fpga_10g/common/vivado.mk | 14 ++++++++------ fpga/mqnic_tdma/VCU118/fpga_10g/common/vivado.mk | 14 ++++++++------ 27 files changed, 216 insertions(+), 162 deletions(-) diff --git a/fpga/mqnic/ADM_PCIE_9V3/fpga_100g/common/vivado.mk b/fpga/mqnic/ADM_PCIE_9V3/fpga_100g/common/vivado.mk index 83bcb8d90..d282a6afd 100644 --- a/fpga/mqnic/ADM_PCIE_9V3/fpga_100g/common/vivado.mk +++ b/fpga/mqnic/ADM_PCIE_9V3/fpga_100g/common/vivado.mk @@ -37,13 +37,14 @@ CONFIG ?= config.mk -include ../$(CONFIG) -SYN_FILES_REL = $(patsubst %, ../%, $(SYN_FILES)) -INC_FILES_REL = $(patsubst %, ../%, $(INC_FILES)) -XCI_FILES_REL = $(patsubst %, ../%, $(XCI_FILES)) -IP_TCL_FILES_REL = $(patsubst %, ../%, $(IP_TCL_FILES)) +SYN_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(SYN_FILES))) $(filter /% ./%,$(SYN_FILES)) +INC_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(INC_FILES))) $(filter /% ./%,$(INC_FILES)) +XCI_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(XCI_FILES))) $(filter /% ./%,$(XCI_FILES)) +IP_TCL_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(IP_TCL_FILES))) $(filter /% ./%,$(IP_TCL_FILES)) +CONFIG_TCL_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(CONFIG_TCL_FILES))) $(filter /% ./%,$(CONFIG_TCL_FILES)) ifdef XDC_FILES - XDC_FILES_REL = $(patsubst %, ../%, $(XDC_FILES)) + XDC_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(XDC_FILES))) $(filter /% ./%,$(XDC_FILES)) else XDC_FILES_REL = $(FPGA_TOP).xdc endif @@ -77,7 +78,7 @@ distclean: clean ################################################################### # Vivado project file -%.xpr: Makefile $(XCI_FILES_REL) $(IP_TCL_FILES_REL) +%.xpr: Makefile $(XCI_FILES_REL) $(IP_TCL_FILES_REL) $(CONFIG_TCL_FILES_REL) rm -rf defines.v touch defines.v for x in $(DEFS); do echo '`define' $$x >> defines.v; done @@ -87,6 +88,7 @@ distclean: clean for x in $(XDC_FILES_REL); do echo "add_files -fileset constrs_1 $$x" >> create_project.tcl; done for x in $(XCI_FILES_REL); do echo "import_ip $$x" >> create_project.tcl; done for x in $(IP_TCL_FILES_REL); do echo "source $$x" >> create_project.tcl; done + for x in $(CONFIG_TCL_FILES_REL); do echo "source $$x" >> create_project.tcl; done echo "exit" >> create_project.tcl vivado -nojournal -nolog -mode batch -source create_project.tcl diff --git a/fpga/mqnic/ADM_PCIE_9V3/fpga_10g/common/vivado.mk b/fpga/mqnic/ADM_PCIE_9V3/fpga_10g/common/vivado.mk index 83bcb8d90..d282a6afd 100644 --- a/fpga/mqnic/ADM_PCIE_9V3/fpga_10g/common/vivado.mk +++ b/fpga/mqnic/ADM_PCIE_9V3/fpga_10g/common/vivado.mk @@ -37,13 +37,14 @@ CONFIG ?= config.mk -include ../$(CONFIG) -SYN_FILES_REL = $(patsubst %, ../%, $(SYN_FILES)) -INC_FILES_REL = $(patsubst %, ../%, $(INC_FILES)) -XCI_FILES_REL = $(patsubst %, ../%, $(XCI_FILES)) -IP_TCL_FILES_REL = $(patsubst %, ../%, $(IP_TCL_FILES)) +SYN_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(SYN_FILES))) $(filter /% ./%,$(SYN_FILES)) +INC_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(INC_FILES))) $(filter /% ./%,$(INC_FILES)) +XCI_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(XCI_FILES))) $(filter /% ./%,$(XCI_FILES)) +IP_TCL_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(IP_TCL_FILES))) $(filter /% ./%,$(IP_TCL_FILES)) +CONFIG_TCL_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(CONFIG_TCL_FILES))) $(filter /% ./%,$(CONFIG_TCL_FILES)) ifdef XDC_FILES - XDC_FILES_REL = $(patsubst %, ../%, $(XDC_FILES)) + XDC_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(XDC_FILES))) $(filter /% ./%,$(XDC_FILES)) else XDC_FILES_REL = $(FPGA_TOP).xdc endif @@ -77,7 +78,7 @@ distclean: clean ################################################################### # Vivado project file -%.xpr: Makefile $(XCI_FILES_REL) $(IP_TCL_FILES_REL) +%.xpr: Makefile $(XCI_FILES_REL) $(IP_TCL_FILES_REL) $(CONFIG_TCL_FILES_REL) rm -rf defines.v touch defines.v for x in $(DEFS); do echo '`define' $$x >> defines.v; done @@ -87,6 +88,7 @@ distclean: clean for x in $(XDC_FILES_REL); do echo "add_files -fileset constrs_1 $$x" >> create_project.tcl; done for x in $(XCI_FILES_REL); do echo "import_ip $$x" >> create_project.tcl; done for x in $(IP_TCL_FILES_REL); do echo "source $$x" >> create_project.tcl; done + for x in $(CONFIG_TCL_FILES_REL); do echo "source $$x" >> create_project.tcl; done echo "exit" >> create_project.tcl vivado -nojournal -nolog -mode batch -source create_project.tcl diff --git a/fpga/mqnic/ADM_PCIE_9V3/fpga_25g/common/vivado.mk b/fpga/mqnic/ADM_PCIE_9V3/fpga_25g/common/vivado.mk index 83bcb8d90..d282a6afd 100644 --- a/fpga/mqnic/ADM_PCIE_9V3/fpga_25g/common/vivado.mk +++ b/fpga/mqnic/ADM_PCIE_9V3/fpga_25g/common/vivado.mk @@ -37,13 +37,14 @@ CONFIG ?= config.mk -include ../$(CONFIG) -SYN_FILES_REL = $(patsubst %, ../%, $(SYN_FILES)) -INC_FILES_REL = $(patsubst %, ../%, $(INC_FILES)) -XCI_FILES_REL = $(patsubst %, ../%, $(XCI_FILES)) -IP_TCL_FILES_REL = $(patsubst %, ../%, $(IP_TCL_FILES)) +SYN_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(SYN_FILES))) $(filter /% ./%,$(SYN_FILES)) +INC_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(INC_FILES))) $(filter /% ./%,$(INC_FILES)) +XCI_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(XCI_FILES))) $(filter /% ./%,$(XCI_FILES)) +IP_TCL_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(IP_TCL_FILES))) $(filter /% ./%,$(IP_TCL_FILES)) +CONFIG_TCL_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(CONFIG_TCL_FILES))) $(filter /% ./%,$(CONFIG_TCL_FILES)) ifdef XDC_FILES - XDC_FILES_REL = $(patsubst %, ../%, $(XDC_FILES)) + XDC_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(XDC_FILES))) $(filter /% ./%,$(XDC_FILES)) else XDC_FILES_REL = $(FPGA_TOP).xdc endif @@ -77,7 +78,7 @@ distclean: clean ################################################################### # Vivado project file -%.xpr: Makefile $(XCI_FILES_REL) $(IP_TCL_FILES_REL) +%.xpr: Makefile $(XCI_FILES_REL) $(IP_TCL_FILES_REL) $(CONFIG_TCL_FILES_REL) rm -rf defines.v touch defines.v for x in $(DEFS); do echo '`define' $$x >> defines.v; done @@ -87,6 +88,7 @@ distclean: clean for x in $(XDC_FILES_REL); do echo "add_files -fileset constrs_1 $$x" >> create_project.tcl; done for x in $(XCI_FILES_REL); do echo "import_ip $$x" >> create_project.tcl; done for x in $(IP_TCL_FILES_REL); do echo "source $$x" >> create_project.tcl; done + for x in $(CONFIG_TCL_FILES_REL); do echo "source $$x" >> create_project.tcl; done echo "exit" >> create_project.tcl vivado -nojournal -nolog -mode batch -source create_project.tcl diff --git a/fpga/mqnic/AU200/fpga_100g/common/vivado.mk b/fpga/mqnic/AU200/fpga_100g/common/vivado.mk index 83bcb8d90..d282a6afd 100644 --- a/fpga/mqnic/AU200/fpga_100g/common/vivado.mk +++ b/fpga/mqnic/AU200/fpga_100g/common/vivado.mk @@ -37,13 +37,14 @@ CONFIG ?= config.mk -include ../$(CONFIG) -SYN_FILES_REL = $(patsubst %, ../%, $(SYN_FILES)) -INC_FILES_REL = $(patsubst %, ../%, $(INC_FILES)) -XCI_FILES_REL = $(patsubst %, ../%, $(XCI_FILES)) -IP_TCL_FILES_REL = $(patsubst %, ../%, $(IP_TCL_FILES)) +SYN_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(SYN_FILES))) $(filter /% ./%,$(SYN_FILES)) +INC_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(INC_FILES))) $(filter /% ./%,$(INC_FILES)) +XCI_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(XCI_FILES))) $(filter /% ./%,$(XCI_FILES)) +IP_TCL_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(IP_TCL_FILES))) $(filter /% ./%,$(IP_TCL_FILES)) +CONFIG_TCL_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(CONFIG_TCL_FILES))) $(filter /% ./%,$(CONFIG_TCL_FILES)) ifdef XDC_FILES - XDC_FILES_REL = $(patsubst %, ../%, $(XDC_FILES)) + XDC_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(XDC_FILES))) $(filter /% ./%,$(XDC_FILES)) else XDC_FILES_REL = $(FPGA_TOP).xdc endif @@ -77,7 +78,7 @@ distclean: clean ################################################################### # Vivado project file -%.xpr: Makefile $(XCI_FILES_REL) $(IP_TCL_FILES_REL) +%.xpr: Makefile $(XCI_FILES_REL) $(IP_TCL_FILES_REL) $(CONFIG_TCL_FILES_REL) rm -rf defines.v touch defines.v for x in $(DEFS); do echo '`define' $$x >> defines.v; done @@ -87,6 +88,7 @@ distclean: clean for x in $(XDC_FILES_REL); do echo "add_files -fileset constrs_1 $$x" >> create_project.tcl; done for x in $(XCI_FILES_REL); do echo "import_ip $$x" >> create_project.tcl; done for x in $(IP_TCL_FILES_REL); do echo "source $$x" >> create_project.tcl; done + for x in $(CONFIG_TCL_FILES_REL); do echo "source $$x" >> create_project.tcl; done echo "exit" >> create_project.tcl vivado -nojournal -nolog -mode batch -source create_project.tcl diff --git a/fpga/mqnic/AU200/fpga_10g/common/vivado.mk b/fpga/mqnic/AU200/fpga_10g/common/vivado.mk index 83bcb8d90..d282a6afd 100644 --- a/fpga/mqnic/AU200/fpga_10g/common/vivado.mk +++ b/fpga/mqnic/AU200/fpga_10g/common/vivado.mk @@ -37,13 +37,14 @@ CONFIG ?= config.mk -include ../$(CONFIG) -SYN_FILES_REL = $(patsubst %, ../%, $(SYN_FILES)) -INC_FILES_REL = $(patsubst %, ../%, $(INC_FILES)) -XCI_FILES_REL = $(patsubst %, ../%, $(XCI_FILES)) -IP_TCL_FILES_REL = $(patsubst %, ../%, $(IP_TCL_FILES)) +SYN_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(SYN_FILES))) $(filter /% ./%,$(SYN_FILES)) +INC_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(INC_FILES))) $(filter /% ./%,$(INC_FILES)) +XCI_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(XCI_FILES))) $(filter /% ./%,$(XCI_FILES)) +IP_TCL_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(IP_TCL_FILES))) $(filter /% ./%,$(IP_TCL_FILES)) +CONFIG_TCL_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(CONFIG_TCL_FILES))) $(filter /% ./%,$(CONFIG_TCL_FILES)) ifdef XDC_FILES - XDC_FILES_REL = $(patsubst %, ../%, $(XDC_FILES)) + XDC_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(XDC_FILES))) $(filter /% ./%,$(XDC_FILES)) else XDC_FILES_REL = $(FPGA_TOP).xdc endif @@ -77,7 +78,7 @@ distclean: clean ################################################################### # Vivado project file -%.xpr: Makefile $(XCI_FILES_REL) $(IP_TCL_FILES_REL) +%.xpr: Makefile $(XCI_FILES_REL) $(IP_TCL_FILES_REL) $(CONFIG_TCL_FILES_REL) rm -rf defines.v touch defines.v for x in $(DEFS); do echo '`define' $$x >> defines.v; done @@ -87,6 +88,7 @@ distclean: clean for x in $(XDC_FILES_REL); do echo "add_files -fileset constrs_1 $$x" >> create_project.tcl; done for x in $(XCI_FILES_REL); do echo "import_ip $$x" >> create_project.tcl; done for x in $(IP_TCL_FILES_REL); do echo "source $$x" >> create_project.tcl; done + for x in $(CONFIG_TCL_FILES_REL); do echo "source $$x" >> create_project.tcl; done echo "exit" >> create_project.tcl vivado -nojournal -nolog -mode batch -source create_project.tcl diff --git a/fpga/mqnic/AU250/fpga_100g/common/vivado.mk b/fpga/mqnic/AU250/fpga_100g/common/vivado.mk index 83bcb8d90..d282a6afd 100644 --- a/fpga/mqnic/AU250/fpga_100g/common/vivado.mk +++ b/fpga/mqnic/AU250/fpga_100g/common/vivado.mk @@ -37,13 +37,14 @@ CONFIG ?= config.mk -include ../$(CONFIG) -SYN_FILES_REL = $(patsubst %, ../%, $(SYN_FILES)) -INC_FILES_REL = $(patsubst %, ../%, $(INC_FILES)) -XCI_FILES_REL = $(patsubst %, ../%, $(XCI_FILES)) -IP_TCL_FILES_REL = $(patsubst %, ../%, $(IP_TCL_FILES)) +SYN_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(SYN_FILES))) $(filter /% ./%,$(SYN_FILES)) +INC_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(INC_FILES))) $(filter /% ./%,$(INC_FILES)) +XCI_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(XCI_FILES))) $(filter /% ./%,$(XCI_FILES)) +IP_TCL_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(IP_TCL_FILES))) $(filter /% ./%,$(IP_TCL_FILES)) +CONFIG_TCL_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(CONFIG_TCL_FILES))) $(filter /% ./%,$(CONFIG_TCL_FILES)) ifdef XDC_FILES - XDC_FILES_REL = $(patsubst %, ../%, $(XDC_FILES)) + XDC_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(XDC_FILES))) $(filter /% ./%,$(XDC_FILES)) else XDC_FILES_REL = $(FPGA_TOP).xdc endif @@ -77,7 +78,7 @@ distclean: clean ################################################################### # Vivado project file -%.xpr: Makefile $(XCI_FILES_REL) $(IP_TCL_FILES_REL) +%.xpr: Makefile $(XCI_FILES_REL) $(IP_TCL_FILES_REL) $(CONFIG_TCL_FILES_REL) rm -rf defines.v touch defines.v for x in $(DEFS); do echo '`define' $$x >> defines.v; done @@ -87,6 +88,7 @@ distclean: clean for x in $(XDC_FILES_REL); do echo "add_files -fileset constrs_1 $$x" >> create_project.tcl; done for x in $(XCI_FILES_REL); do echo "import_ip $$x" >> create_project.tcl; done for x in $(IP_TCL_FILES_REL); do echo "source $$x" >> create_project.tcl; done + for x in $(CONFIG_TCL_FILES_REL); do echo "source $$x" >> create_project.tcl; done echo "exit" >> create_project.tcl vivado -nojournal -nolog -mode batch -source create_project.tcl diff --git a/fpga/mqnic/AU250/fpga_10g/common/vivado.mk b/fpga/mqnic/AU250/fpga_10g/common/vivado.mk index 83bcb8d90..d282a6afd 100644 --- a/fpga/mqnic/AU250/fpga_10g/common/vivado.mk +++ b/fpga/mqnic/AU250/fpga_10g/common/vivado.mk @@ -37,13 +37,14 @@ CONFIG ?= config.mk -include ../$(CONFIG) -SYN_FILES_REL = $(patsubst %, ../%, $(SYN_FILES)) -INC_FILES_REL = $(patsubst %, ../%, $(INC_FILES)) -XCI_FILES_REL = $(patsubst %, ../%, $(XCI_FILES)) -IP_TCL_FILES_REL = $(patsubst %, ../%, $(IP_TCL_FILES)) +SYN_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(SYN_FILES))) $(filter /% ./%,$(SYN_FILES)) +INC_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(INC_FILES))) $(filter /% ./%,$(INC_FILES)) +XCI_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(XCI_FILES))) $(filter /% ./%,$(XCI_FILES)) +IP_TCL_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(IP_TCL_FILES))) $(filter /% ./%,$(IP_TCL_FILES)) +CONFIG_TCL_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(CONFIG_TCL_FILES))) $(filter /% ./%,$(CONFIG_TCL_FILES)) ifdef XDC_FILES - XDC_FILES_REL = $(patsubst %, ../%, $(XDC_FILES)) + XDC_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(XDC_FILES))) $(filter /% ./%,$(XDC_FILES)) else XDC_FILES_REL = $(FPGA_TOP).xdc endif @@ -77,7 +78,7 @@ distclean: clean ################################################################### # Vivado project file -%.xpr: Makefile $(XCI_FILES_REL) $(IP_TCL_FILES_REL) +%.xpr: Makefile $(XCI_FILES_REL) $(IP_TCL_FILES_REL) $(CONFIG_TCL_FILES_REL) rm -rf defines.v touch defines.v for x in $(DEFS); do echo '`define' $$x >> defines.v; done @@ -87,6 +88,7 @@ distclean: clean for x in $(XDC_FILES_REL); do echo "add_files -fileset constrs_1 $$x" >> create_project.tcl; done for x in $(XCI_FILES_REL); do echo "import_ip $$x" >> create_project.tcl; done for x in $(IP_TCL_FILES_REL); do echo "source $$x" >> create_project.tcl; done + for x in $(CONFIG_TCL_FILES_REL); do echo "source $$x" >> create_project.tcl; done echo "exit" >> create_project.tcl vivado -nojournal -nolog -mode batch -source create_project.tcl diff --git a/fpga/mqnic/AU280/fpga_100g/common/vivado.mk b/fpga/mqnic/AU280/fpga_100g/common/vivado.mk index 83bcb8d90..d282a6afd 100644 --- a/fpga/mqnic/AU280/fpga_100g/common/vivado.mk +++ b/fpga/mqnic/AU280/fpga_100g/common/vivado.mk @@ -37,13 +37,14 @@ CONFIG ?= config.mk -include ../$(CONFIG) -SYN_FILES_REL = $(patsubst %, ../%, $(SYN_FILES)) -INC_FILES_REL = $(patsubst %, ../%, $(INC_FILES)) -XCI_FILES_REL = $(patsubst %, ../%, $(XCI_FILES)) -IP_TCL_FILES_REL = $(patsubst %, ../%, $(IP_TCL_FILES)) +SYN_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(SYN_FILES))) $(filter /% ./%,$(SYN_FILES)) +INC_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(INC_FILES))) $(filter /% ./%,$(INC_FILES)) +XCI_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(XCI_FILES))) $(filter /% ./%,$(XCI_FILES)) +IP_TCL_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(IP_TCL_FILES))) $(filter /% ./%,$(IP_TCL_FILES)) +CONFIG_TCL_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(CONFIG_TCL_FILES))) $(filter /% ./%,$(CONFIG_TCL_FILES)) ifdef XDC_FILES - XDC_FILES_REL = $(patsubst %, ../%, $(XDC_FILES)) + XDC_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(XDC_FILES))) $(filter /% ./%,$(XDC_FILES)) else XDC_FILES_REL = $(FPGA_TOP).xdc endif @@ -77,7 +78,7 @@ distclean: clean ################################################################### # Vivado project file -%.xpr: Makefile $(XCI_FILES_REL) $(IP_TCL_FILES_REL) +%.xpr: Makefile $(XCI_FILES_REL) $(IP_TCL_FILES_REL) $(CONFIG_TCL_FILES_REL) rm -rf defines.v touch defines.v for x in $(DEFS); do echo '`define' $$x >> defines.v; done @@ -87,6 +88,7 @@ distclean: clean for x in $(XDC_FILES_REL); do echo "add_files -fileset constrs_1 $$x" >> create_project.tcl; done for x in $(XCI_FILES_REL); do echo "import_ip $$x" >> create_project.tcl; done for x in $(IP_TCL_FILES_REL); do echo "source $$x" >> create_project.tcl; done + for x in $(CONFIG_TCL_FILES_REL); do echo "source $$x" >> create_project.tcl; done echo "exit" >> create_project.tcl vivado -nojournal -nolog -mode batch -source create_project.tcl diff --git a/fpga/mqnic/AU280/fpga_10g/common/vivado.mk b/fpga/mqnic/AU280/fpga_10g/common/vivado.mk index 83bcb8d90..d282a6afd 100644 --- a/fpga/mqnic/AU280/fpga_10g/common/vivado.mk +++ b/fpga/mqnic/AU280/fpga_10g/common/vivado.mk @@ -37,13 +37,14 @@ CONFIG ?= config.mk -include ../$(CONFIG) -SYN_FILES_REL = $(patsubst %, ../%, $(SYN_FILES)) -INC_FILES_REL = $(patsubst %, ../%, $(INC_FILES)) -XCI_FILES_REL = $(patsubst %, ../%, $(XCI_FILES)) -IP_TCL_FILES_REL = $(patsubst %, ../%, $(IP_TCL_FILES)) +SYN_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(SYN_FILES))) $(filter /% ./%,$(SYN_FILES)) +INC_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(INC_FILES))) $(filter /% ./%,$(INC_FILES)) +XCI_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(XCI_FILES))) $(filter /% ./%,$(XCI_FILES)) +IP_TCL_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(IP_TCL_FILES))) $(filter /% ./%,$(IP_TCL_FILES)) +CONFIG_TCL_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(CONFIG_TCL_FILES))) $(filter /% ./%,$(CONFIG_TCL_FILES)) ifdef XDC_FILES - XDC_FILES_REL = $(patsubst %, ../%, $(XDC_FILES)) + XDC_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(XDC_FILES))) $(filter /% ./%,$(XDC_FILES)) else XDC_FILES_REL = $(FPGA_TOP).xdc endif @@ -77,7 +78,7 @@ distclean: clean ################################################################### # Vivado project file -%.xpr: Makefile $(XCI_FILES_REL) $(IP_TCL_FILES_REL) +%.xpr: Makefile $(XCI_FILES_REL) $(IP_TCL_FILES_REL) $(CONFIG_TCL_FILES_REL) rm -rf defines.v touch defines.v for x in $(DEFS); do echo '`define' $$x >> defines.v; done @@ -87,6 +88,7 @@ distclean: clean for x in $(XDC_FILES_REL); do echo "add_files -fileset constrs_1 $$x" >> create_project.tcl; done for x in $(XCI_FILES_REL); do echo "import_ip $$x" >> create_project.tcl; done for x in $(IP_TCL_FILES_REL); do echo "source $$x" >> create_project.tcl; done + for x in $(CONFIG_TCL_FILES_REL); do echo "source $$x" >> create_project.tcl; done echo "exit" >> create_project.tcl vivado -nojournal -nolog -mode batch -source create_project.tcl diff --git a/fpga/mqnic/AU50/fpga_100g/common/vivado.mk b/fpga/mqnic/AU50/fpga_100g/common/vivado.mk index 83bcb8d90..d282a6afd 100644 --- a/fpga/mqnic/AU50/fpga_100g/common/vivado.mk +++ b/fpga/mqnic/AU50/fpga_100g/common/vivado.mk @@ -37,13 +37,14 @@ CONFIG ?= config.mk -include ../$(CONFIG) -SYN_FILES_REL = $(patsubst %, ../%, $(SYN_FILES)) -INC_FILES_REL = $(patsubst %, ../%, $(INC_FILES)) -XCI_FILES_REL = $(patsubst %, ../%, $(XCI_FILES)) -IP_TCL_FILES_REL = $(patsubst %, ../%, $(IP_TCL_FILES)) +SYN_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(SYN_FILES))) $(filter /% ./%,$(SYN_FILES)) +INC_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(INC_FILES))) $(filter /% ./%,$(INC_FILES)) +XCI_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(XCI_FILES))) $(filter /% ./%,$(XCI_FILES)) +IP_TCL_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(IP_TCL_FILES))) $(filter /% ./%,$(IP_TCL_FILES)) +CONFIG_TCL_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(CONFIG_TCL_FILES))) $(filter /% ./%,$(CONFIG_TCL_FILES)) ifdef XDC_FILES - XDC_FILES_REL = $(patsubst %, ../%, $(XDC_FILES)) + XDC_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(XDC_FILES))) $(filter /% ./%,$(XDC_FILES)) else XDC_FILES_REL = $(FPGA_TOP).xdc endif @@ -77,7 +78,7 @@ distclean: clean ################################################################### # Vivado project file -%.xpr: Makefile $(XCI_FILES_REL) $(IP_TCL_FILES_REL) +%.xpr: Makefile $(XCI_FILES_REL) $(IP_TCL_FILES_REL) $(CONFIG_TCL_FILES_REL) rm -rf defines.v touch defines.v for x in $(DEFS); do echo '`define' $$x >> defines.v; done @@ -87,6 +88,7 @@ distclean: clean for x in $(XDC_FILES_REL); do echo "add_files -fileset constrs_1 $$x" >> create_project.tcl; done for x in $(XCI_FILES_REL); do echo "import_ip $$x" >> create_project.tcl; done for x in $(IP_TCL_FILES_REL); do echo "source $$x" >> create_project.tcl; done + for x in $(CONFIG_TCL_FILES_REL); do echo "source $$x" >> create_project.tcl; done echo "exit" >> create_project.tcl vivado -nojournal -nolog -mode batch -source create_project.tcl diff --git a/fpga/mqnic/AU50/fpga_10g/common/vivado.mk b/fpga/mqnic/AU50/fpga_10g/common/vivado.mk index 83bcb8d90..d282a6afd 100644 --- a/fpga/mqnic/AU50/fpga_10g/common/vivado.mk +++ b/fpga/mqnic/AU50/fpga_10g/common/vivado.mk @@ -37,13 +37,14 @@ CONFIG ?= config.mk -include ../$(CONFIG) -SYN_FILES_REL = $(patsubst %, ../%, $(SYN_FILES)) -INC_FILES_REL = $(patsubst %, ../%, $(INC_FILES)) -XCI_FILES_REL = $(patsubst %, ../%, $(XCI_FILES)) -IP_TCL_FILES_REL = $(patsubst %, ../%, $(IP_TCL_FILES)) +SYN_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(SYN_FILES))) $(filter /% ./%,$(SYN_FILES)) +INC_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(INC_FILES))) $(filter /% ./%,$(INC_FILES)) +XCI_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(XCI_FILES))) $(filter /% ./%,$(XCI_FILES)) +IP_TCL_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(IP_TCL_FILES))) $(filter /% ./%,$(IP_TCL_FILES)) +CONFIG_TCL_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(CONFIG_TCL_FILES))) $(filter /% ./%,$(CONFIG_TCL_FILES)) ifdef XDC_FILES - XDC_FILES_REL = $(patsubst %, ../%, $(XDC_FILES)) + XDC_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(XDC_FILES))) $(filter /% ./%,$(XDC_FILES)) else XDC_FILES_REL = $(FPGA_TOP).xdc endif @@ -77,7 +78,7 @@ distclean: clean ################################################################### # Vivado project file -%.xpr: Makefile $(XCI_FILES_REL) $(IP_TCL_FILES_REL) +%.xpr: Makefile $(XCI_FILES_REL) $(IP_TCL_FILES_REL) $(CONFIG_TCL_FILES_REL) rm -rf defines.v touch defines.v for x in $(DEFS); do echo '`define' $$x >> defines.v; done @@ -87,6 +88,7 @@ distclean: clean for x in $(XDC_FILES_REL); do echo "add_files -fileset constrs_1 $$x" >> create_project.tcl; done for x in $(XCI_FILES_REL); do echo "import_ip $$x" >> create_project.tcl; done for x in $(IP_TCL_FILES_REL); do echo "source $$x" >> create_project.tcl; done + for x in $(CONFIG_TCL_FILES_REL); do echo "source $$x" >> create_project.tcl; done echo "exit" >> create_project.tcl vivado -nojournal -nolog -mode batch -source create_project.tcl diff --git a/fpga/mqnic/ExaNIC_X10/fpga/common/vivado.mk b/fpga/mqnic/ExaNIC_X10/fpga/common/vivado.mk index adc718121..477bbadb5 100644 --- a/fpga/mqnic/ExaNIC_X10/fpga/common/vivado.mk +++ b/fpga/mqnic/ExaNIC_X10/fpga/common/vivado.mk @@ -37,13 +37,14 @@ CONFIG ?= config.mk -include ../$(CONFIG) -SYN_FILES_REL = $(patsubst %, ../%, $(SYN_FILES)) -INC_FILES_REL = $(patsubst %, ../%, $(INC_FILES)) -XCI_FILES_REL = $(patsubst %, ../%, $(XCI_FILES)) -IP_TCL_FILES_REL = $(patsubst %, ../%, $(IP_TCL_FILES)) +SYN_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(SYN_FILES))) $(filter /% ./%,$(SYN_FILES)) +INC_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(INC_FILES))) $(filter /% ./%,$(INC_FILES)) +XCI_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(XCI_FILES))) $(filter /% ./%,$(XCI_FILES)) +IP_TCL_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(IP_TCL_FILES))) $(filter /% ./%,$(IP_TCL_FILES)) +CONFIG_TCL_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(CONFIG_TCL_FILES))) $(filter /% ./%,$(CONFIG_TCL_FILES)) ifdef XDC_FILES - XDC_FILES_REL = $(patsubst %, ../%, $(XDC_FILES)) + XDC_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(XDC_FILES))) $(filter /% ./%,$(XDC_FILES)) else XDC_FILES_REL = $(FPGA_TOP).xdc endif @@ -77,7 +78,7 @@ distclean: clean ################################################################### # Vivado project file -%.xpr: Makefile $(XCI_FILES_REL) $(IP_TCL_FILES_REL) +%.xpr: Makefile $(XCI_FILES_REL) $(IP_TCL_FILES_REL) $(CONFIG_TCL_FILES_REL) rm -rf defines.v touch defines.v for x in $(DEFS); do echo '`define' $$x >> defines.v; done @@ -87,6 +88,7 @@ distclean: clean for x in $(XDC_FILES_REL); do echo "add_files -fileset constrs_1 $$x" >> create_project.tcl; done for x in $(XCI_FILES_REL); do echo "import_ip $$x" >> create_project.tcl; done for x in $(IP_TCL_FILES_REL); do echo "source $$x" >> create_project.tcl; done + for x in $(CONFIG_TCL_FILES_REL); do echo "source $$x" >> create_project.tcl; done echo "exit" >> create_project.tcl vivado -nojournal -nolog -mode batch -source create_project.tcl diff --git a/fpga/mqnic/ExaNIC_X25/fpga_10g/common/vivado.mk b/fpga/mqnic/ExaNIC_X25/fpga_10g/common/vivado.mk index 83bcb8d90..d282a6afd 100644 --- a/fpga/mqnic/ExaNIC_X25/fpga_10g/common/vivado.mk +++ b/fpga/mqnic/ExaNIC_X25/fpga_10g/common/vivado.mk @@ -37,13 +37,14 @@ CONFIG ?= config.mk -include ../$(CONFIG) -SYN_FILES_REL = $(patsubst %, ../%, $(SYN_FILES)) -INC_FILES_REL = $(patsubst %, ../%, $(INC_FILES)) -XCI_FILES_REL = $(patsubst %, ../%, $(XCI_FILES)) -IP_TCL_FILES_REL = $(patsubst %, ../%, $(IP_TCL_FILES)) +SYN_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(SYN_FILES))) $(filter /% ./%,$(SYN_FILES)) +INC_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(INC_FILES))) $(filter /% ./%,$(INC_FILES)) +XCI_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(XCI_FILES))) $(filter /% ./%,$(XCI_FILES)) +IP_TCL_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(IP_TCL_FILES))) $(filter /% ./%,$(IP_TCL_FILES)) +CONFIG_TCL_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(CONFIG_TCL_FILES))) $(filter /% ./%,$(CONFIG_TCL_FILES)) ifdef XDC_FILES - XDC_FILES_REL = $(patsubst %, ../%, $(XDC_FILES)) + XDC_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(XDC_FILES))) $(filter /% ./%,$(XDC_FILES)) else XDC_FILES_REL = $(FPGA_TOP).xdc endif @@ -77,7 +78,7 @@ distclean: clean ################################################################### # Vivado project file -%.xpr: Makefile $(XCI_FILES_REL) $(IP_TCL_FILES_REL) +%.xpr: Makefile $(XCI_FILES_REL) $(IP_TCL_FILES_REL) $(CONFIG_TCL_FILES_REL) rm -rf defines.v touch defines.v for x in $(DEFS); do echo '`define' $$x >> defines.v; done @@ -87,6 +88,7 @@ distclean: clean for x in $(XDC_FILES_REL); do echo "add_files -fileset constrs_1 $$x" >> create_project.tcl; done for x in $(XCI_FILES_REL); do echo "import_ip $$x" >> create_project.tcl; done for x in $(IP_TCL_FILES_REL); do echo "source $$x" >> create_project.tcl; done + for x in $(CONFIG_TCL_FILES_REL); do echo "source $$x" >> create_project.tcl; done echo "exit" >> create_project.tcl vivado -nojournal -nolog -mode batch -source create_project.tcl diff --git a/fpga/mqnic/NetFPGA_SUME/fpga/common/vivado.mk b/fpga/mqnic/NetFPGA_SUME/fpga/common/vivado.mk index adc718121..477bbadb5 100644 --- a/fpga/mqnic/NetFPGA_SUME/fpga/common/vivado.mk +++ b/fpga/mqnic/NetFPGA_SUME/fpga/common/vivado.mk @@ -37,13 +37,14 @@ CONFIG ?= config.mk -include ../$(CONFIG) -SYN_FILES_REL = $(patsubst %, ../%, $(SYN_FILES)) -INC_FILES_REL = $(patsubst %, ../%, $(INC_FILES)) -XCI_FILES_REL = $(patsubst %, ../%, $(XCI_FILES)) -IP_TCL_FILES_REL = $(patsubst %, ../%, $(IP_TCL_FILES)) +SYN_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(SYN_FILES))) $(filter /% ./%,$(SYN_FILES)) +INC_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(INC_FILES))) $(filter /% ./%,$(INC_FILES)) +XCI_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(XCI_FILES))) $(filter /% ./%,$(XCI_FILES)) +IP_TCL_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(IP_TCL_FILES))) $(filter /% ./%,$(IP_TCL_FILES)) +CONFIG_TCL_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(CONFIG_TCL_FILES))) $(filter /% ./%,$(CONFIG_TCL_FILES)) ifdef XDC_FILES - XDC_FILES_REL = $(patsubst %, ../%, $(XDC_FILES)) + XDC_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(XDC_FILES))) $(filter /% ./%,$(XDC_FILES)) else XDC_FILES_REL = $(FPGA_TOP).xdc endif @@ -77,7 +78,7 @@ distclean: clean ################################################################### # Vivado project file -%.xpr: Makefile $(XCI_FILES_REL) $(IP_TCL_FILES_REL) +%.xpr: Makefile $(XCI_FILES_REL) $(IP_TCL_FILES_REL) $(CONFIG_TCL_FILES_REL) rm -rf defines.v touch defines.v for x in $(DEFS); do echo '`define' $$x >> defines.v; done @@ -87,6 +88,7 @@ distclean: clean for x in $(XDC_FILES_REL); do echo "add_files -fileset constrs_1 $$x" >> create_project.tcl; done for x in $(XCI_FILES_REL); do echo "import_ip $$x" >> create_project.tcl; done for x in $(IP_TCL_FILES_REL); do echo "source $$x" >> create_project.tcl; done + for x in $(CONFIG_TCL_FILES_REL); do echo "source $$x" >> create_project.tcl; done echo "exit" >> create_project.tcl vivado -nojournal -nolog -mode batch -source create_project.tcl diff --git a/fpga/mqnic/VCU108/fpga_10g/common/vivado.mk b/fpga/mqnic/VCU108/fpga_10g/common/vivado.mk index adc718121..477bbadb5 100644 --- a/fpga/mqnic/VCU108/fpga_10g/common/vivado.mk +++ b/fpga/mqnic/VCU108/fpga_10g/common/vivado.mk @@ -37,13 +37,14 @@ CONFIG ?= config.mk -include ../$(CONFIG) -SYN_FILES_REL = $(patsubst %, ../%, $(SYN_FILES)) -INC_FILES_REL = $(patsubst %, ../%, $(INC_FILES)) -XCI_FILES_REL = $(patsubst %, ../%, $(XCI_FILES)) -IP_TCL_FILES_REL = $(patsubst %, ../%, $(IP_TCL_FILES)) +SYN_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(SYN_FILES))) $(filter /% ./%,$(SYN_FILES)) +INC_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(INC_FILES))) $(filter /% ./%,$(INC_FILES)) +XCI_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(XCI_FILES))) $(filter /% ./%,$(XCI_FILES)) +IP_TCL_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(IP_TCL_FILES))) $(filter /% ./%,$(IP_TCL_FILES)) +CONFIG_TCL_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(CONFIG_TCL_FILES))) $(filter /% ./%,$(CONFIG_TCL_FILES)) ifdef XDC_FILES - XDC_FILES_REL = $(patsubst %, ../%, $(XDC_FILES)) + XDC_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(XDC_FILES))) $(filter /% ./%,$(XDC_FILES)) else XDC_FILES_REL = $(FPGA_TOP).xdc endif @@ -77,7 +78,7 @@ distclean: clean ################################################################### # Vivado project file -%.xpr: Makefile $(XCI_FILES_REL) $(IP_TCL_FILES_REL) +%.xpr: Makefile $(XCI_FILES_REL) $(IP_TCL_FILES_REL) $(CONFIG_TCL_FILES_REL) rm -rf defines.v touch defines.v for x in $(DEFS); do echo '`define' $$x >> defines.v; done @@ -87,6 +88,7 @@ distclean: clean for x in $(XDC_FILES_REL); do echo "add_files -fileset constrs_1 $$x" >> create_project.tcl; done for x in $(XCI_FILES_REL); do echo "import_ip $$x" >> create_project.tcl; done for x in $(IP_TCL_FILES_REL); do echo "source $$x" >> create_project.tcl; done + for x in $(CONFIG_TCL_FILES_REL); do echo "source $$x" >> create_project.tcl; done echo "exit" >> create_project.tcl vivado -nojournal -nolog -mode batch -source create_project.tcl diff --git a/fpga/mqnic/VCU118/fpga_100g/common/vivado.mk b/fpga/mqnic/VCU118/fpga_100g/common/vivado.mk index 83bcb8d90..d282a6afd 100644 --- a/fpga/mqnic/VCU118/fpga_100g/common/vivado.mk +++ b/fpga/mqnic/VCU118/fpga_100g/common/vivado.mk @@ -37,13 +37,14 @@ CONFIG ?= config.mk -include ../$(CONFIG) -SYN_FILES_REL = $(patsubst %, ../%, $(SYN_FILES)) -INC_FILES_REL = $(patsubst %, ../%, $(INC_FILES)) -XCI_FILES_REL = $(patsubst %, ../%, $(XCI_FILES)) -IP_TCL_FILES_REL = $(patsubst %, ../%, $(IP_TCL_FILES)) +SYN_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(SYN_FILES))) $(filter /% ./%,$(SYN_FILES)) +INC_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(INC_FILES))) $(filter /% ./%,$(INC_FILES)) +XCI_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(XCI_FILES))) $(filter /% ./%,$(XCI_FILES)) +IP_TCL_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(IP_TCL_FILES))) $(filter /% ./%,$(IP_TCL_FILES)) +CONFIG_TCL_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(CONFIG_TCL_FILES))) $(filter /% ./%,$(CONFIG_TCL_FILES)) ifdef XDC_FILES - XDC_FILES_REL = $(patsubst %, ../%, $(XDC_FILES)) + XDC_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(XDC_FILES))) $(filter /% ./%,$(XDC_FILES)) else XDC_FILES_REL = $(FPGA_TOP).xdc endif @@ -77,7 +78,7 @@ distclean: clean ################################################################### # Vivado project file -%.xpr: Makefile $(XCI_FILES_REL) $(IP_TCL_FILES_REL) +%.xpr: Makefile $(XCI_FILES_REL) $(IP_TCL_FILES_REL) $(CONFIG_TCL_FILES_REL) rm -rf defines.v touch defines.v for x in $(DEFS); do echo '`define' $$x >> defines.v; done @@ -87,6 +88,7 @@ distclean: clean for x in $(XDC_FILES_REL); do echo "add_files -fileset constrs_1 $$x" >> create_project.tcl; done for x in $(XCI_FILES_REL); do echo "import_ip $$x" >> create_project.tcl; done for x in $(IP_TCL_FILES_REL); do echo "source $$x" >> create_project.tcl; done + for x in $(CONFIG_TCL_FILES_REL); do echo "source $$x" >> create_project.tcl; done echo "exit" >> create_project.tcl vivado -nojournal -nolog -mode batch -source create_project.tcl diff --git a/fpga/mqnic/VCU118/fpga_10g/common/vivado.mk b/fpga/mqnic/VCU118/fpga_10g/common/vivado.mk index 83bcb8d90..d282a6afd 100644 --- a/fpga/mqnic/VCU118/fpga_10g/common/vivado.mk +++ b/fpga/mqnic/VCU118/fpga_10g/common/vivado.mk @@ -37,13 +37,14 @@ CONFIG ?= config.mk -include ../$(CONFIG) -SYN_FILES_REL = $(patsubst %, ../%, $(SYN_FILES)) -INC_FILES_REL = $(patsubst %, ../%, $(INC_FILES)) -XCI_FILES_REL = $(patsubst %, ../%, $(XCI_FILES)) -IP_TCL_FILES_REL = $(patsubst %, ../%, $(IP_TCL_FILES)) +SYN_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(SYN_FILES))) $(filter /% ./%,$(SYN_FILES)) +INC_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(INC_FILES))) $(filter /% ./%,$(INC_FILES)) +XCI_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(XCI_FILES))) $(filter /% ./%,$(XCI_FILES)) +IP_TCL_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(IP_TCL_FILES))) $(filter /% ./%,$(IP_TCL_FILES)) +CONFIG_TCL_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(CONFIG_TCL_FILES))) $(filter /% ./%,$(CONFIG_TCL_FILES)) ifdef XDC_FILES - XDC_FILES_REL = $(patsubst %, ../%, $(XDC_FILES)) + XDC_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(XDC_FILES))) $(filter /% ./%,$(XDC_FILES)) else XDC_FILES_REL = $(FPGA_TOP).xdc endif @@ -77,7 +78,7 @@ distclean: clean ################################################################### # Vivado project file -%.xpr: Makefile $(XCI_FILES_REL) $(IP_TCL_FILES_REL) +%.xpr: Makefile $(XCI_FILES_REL) $(IP_TCL_FILES_REL) $(CONFIG_TCL_FILES_REL) rm -rf defines.v touch defines.v for x in $(DEFS); do echo '`define' $$x >> defines.v; done @@ -87,6 +88,7 @@ distclean: clean for x in $(XDC_FILES_REL); do echo "add_files -fileset constrs_1 $$x" >> create_project.tcl; done for x in $(XCI_FILES_REL); do echo "import_ip $$x" >> create_project.tcl; done for x in $(IP_TCL_FILES_REL); do echo "source $$x" >> create_project.tcl; done + for x in $(CONFIG_TCL_FILES_REL); do echo "source $$x" >> create_project.tcl; done echo "exit" >> create_project.tcl vivado -nojournal -nolog -mode batch -source create_project.tcl diff --git a/fpga/mqnic/VCU1525/fpga_100g/common/vivado.mk b/fpga/mqnic/VCU1525/fpga_100g/common/vivado.mk index 83bcb8d90..d282a6afd 100644 --- a/fpga/mqnic/VCU1525/fpga_100g/common/vivado.mk +++ b/fpga/mqnic/VCU1525/fpga_100g/common/vivado.mk @@ -37,13 +37,14 @@ CONFIG ?= config.mk -include ../$(CONFIG) -SYN_FILES_REL = $(patsubst %, ../%, $(SYN_FILES)) -INC_FILES_REL = $(patsubst %, ../%, $(INC_FILES)) -XCI_FILES_REL = $(patsubst %, ../%, $(XCI_FILES)) -IP_TCL_FILES_REL = $(patsubst %, ../%, $(IP_TCL_FILES)) +SYN_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(SYN_FILES))) $(filter /% ./%,$(SYN_FILES)) +INC_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(INC_FILES))) $(filter /% ./%,$(INC_FILES)) +XCI_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(XCI_FILES))) $(filter /% ./%,$(XCI_FILES)) +IP_TCL_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(IP_TCL_FILES))) $(filter /% ./%,$(IP_TCL_FILES)) +CONFIG_TCL_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(CONFIG_TCL_FILES))) $(filter /% ./%,$(CONFIG_TCL_FILES)) ifdef XDC_FILES - XDC_FILES_REL = $(patsubst %, ../%, $(XDC_FILES)) + XDC_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(XDC_FILES))) $(filter /% ./%,$(XDC_FILES)) else XDC_FILES_REL = $(FPGA_TOP).xdc endif @@ -77,7 +78,7 @@ distclean: clean ################################################################### # Vivado project file -%.xpr: Makefile $(XCI_FILES_REL) $(IP_TCL_FILES_REL) +%.xpr: Makefile $(XCI_FILES_REL) $(IP_TCL_FILES_REL) $(CONFIG_TCL_FILES_REL) rm -rf defines.v touch defines.v for x in $(DEFS); do echo '`define' $$x >> defines.v; done @@ -87,6 +88,7 @@ distclean: clean for x in $(XDC_FILES_REL); do echo "add_files -fileset constrs_1 $$x" >> create_project.tcl; done for x in $(XCI_FILES_REL); do echo "import_ip $$x" >> create_project.tcl; done for x in $(IP_TCL_FILES_REL); do echo "source $$x" >> create_project.tcl; done + for x in $(CONFIG_TCL_FILES_REL); do echo "source $$x" >> create_project.tcl; done echo "exit" >> create_project.tcl vivado -nojournal -nolog -mode batch -source create_project.tcl diff --git a/fpga/mqnic/VCU1525/fpga_10g/common/vivado.mk b/fpga/mqnic/VCU1525/fpga_10g/common/vivado.mk index 83bcb8d90..d282a6afd 100644 --- a/fpga/mqnic/VCU1525/fpga_10g/common/vivado.mk +++ b/fpga/mqnic/VCU1525/fpga_10g/common/vivado.mk @@ -37,13 +37,14 @@ CONFIG ?= config.mk -include ../$(CONFIG) -SYN_FILES_REL = $(patsubst %, ../%, $(SYN_FILES)) -INC_FILES_REL = $(patsubst %, ../%, $(INC_FILES)) -XCI_FILES_REL = $(patsubst %, ../%, $(XCI_FILES)) -IP_TCL_FILES_REL = $(patsubst %, ../%, $(IP_TCL_FILES)) +SYN_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(SYN_FILES))) $(filter /% ./%,$(SYN_FILES)) +INC_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(INC_FILES))) $(filter /% ./%,$(INC_FILES)) +XCI_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(XCI_FILES))) $(filter /% ./%,$(XCI_FILES)) +IP_TCL_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(IP_TCL_FILES))) $(filter /% ./%,$(IP_TCL_FILES)) +CONFIG_TCL_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(CONFIG_TCL_FILES))) $(filter /% ./%,$(CONFIG_TCL_FILES)) ifdef XDC_FILES - XDC_FILES_REL = $(patsubst %, ../%, $(XDC_FILES)) + XDC_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(XDC_FILES))) $(filter /% ./%,$(XDC_FILES)) else XDC_FILES_REL = $(FPGA_TOP).xdc endif @@ -77,7 +78,7 @@ distclean: clean ################################################################### # Vivado project file -%.xpr: Makefile $(XCI_FILES_REL) $(IP_TCL_FILES_REL) +%.xpr: Makefile $(XCI_FILES_REL) $(IP_TCL_FILES_REL) $(CONFIG_TCL_FILES_REL) rm -rf defines.v touch defines.v for x in $(DEFS); do echo '`define' $$x >> defines.v; done @@ -87,6 +88,7 @@ distclean: clean for x in $(XDC_FILES_REL); do echo "add_files -fileset constrs_1 $$x" >> create_project.tcl; done for x in $(XCI_FILES_REL); do echo "import_ip $$x" >> create_project.tcl; done for x in $(IP_TCL_FILES_REL); do echo "source $$x" >> create_project.tcl; done + for x in $(CONFIG_TCL_FILES_REL); do echo "source $$x" >> create_project.tcl; done echo "exit" >> create_project.tcl vivado -nojournal -nolog -mode batch -source create_project.tcl diff --git a/fpga/mqnic/ZCU106/fpga_pcie/common/vivado.mk b/fpga/mqnic/ZCU106/fpga_pcie/common/vivado.mk index 83bcb8d90..d282a6afd 100644 --- a/fpga/mqnic/ZCU106/fpga_pcie/common/vivado.mk +++ b/fpga/mqnic/ZCU106/fpga_pcie/common/vivado.mk @@ -37,13 +37,14 @@ CONFIG ?= config.mk -include ../$(CONFIG) -SYN_FILES_REL = $(patsubst %, ../%, $(SYN_FILES)) -INC_FILES_REL = $(patsubst %, ../%, $(INC_FILES)) -XCI_FILES_REL = $(patsubst %, ../%, $(XCI_FILES)) -IP_TCL_FILES_REL = $(patsubst %, ../%, $(IP_TCL_FILES)) +SYN_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(SYN_FILES))) $(filter /% ./%,$(SYN_FILES)) +INC_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(INC_FILES))) $(filter /% ./%,$(INC_FILES)) +XCI_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(XCI_FILES))) $(filter /% ./%,$(XCI_FILES)) +IP_TCL_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(IP_TCL_FILES))) $(filter /% ./%,$(IP_TCL_FILES)) +CONFIG_TCL_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(CONFIG_TCL_FILES))) $(filter /% ./%,$(CONFIG_TCL_FILES)) ifdef XDC_FILES - XDC_FILES_REL = $(patsubst %, ../%, $(XDC_FILES)) + XDC_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(XDC_FILES))) $(filter /% ./%,$(XDC_FILES)) else XDC_FILES_REL = $(FPGA_TOP).xdc endif @@ -77,7 +78,7 @@ distclean: clean ################################################################### # Vivado project file -%.xpr: Makefile $(XCI_FILES_REL) $(IP_TCL_FILES_REL) +%.xpr: Makefile $(XCI_FILES_REL) $(IP_TCL_FILES_REL) $(CONFIG_TCL_FILES_REL) rm -rf defines.v touch defines.v for x in $(DEFS); do echo '`define' $$x >> defines.v; done @@ -87,6 +88,7 @@ distclean: clean for x in $(XDC_FILES_REL); do echo "add_files -fileset constrs_1 $$x" >> create_project.tcl; done for x in $(XCI_FILES_REL); do echo "import_ip $$x" >> create_project.tcl; done for x in $(IP_TCL_FILES_REL); do echo "source $$x" >> create_project.tcl; done + for x in $(CONFIG_TCL_FILES_REL); do echo "source $$x" >> create_project.tcl; done echo "exit" >> create_project.tcl vivado -nojournal -nolog -mode batch -source create_project.tcl diff --git a/fpga/mqnic/fb2CG/fpga_100g/common/vivado.mk b/fpga/mqnic/fb2CG/fpga_100g/common/vivado.mk index 83bcb8d90..d282a6afd 100644 --- a/fpga/mqnic/fb2CG/fpga_100g/common/vivado.mk +++ b/fpga/mqnic/fb2CG/fpga_100g/common/vivado.mk @@ -37,13 +37,14 @@ CONFIG ?= config.mk -include ../$(CONFIG) -SYN_FILES_REL = $(patsubst %, ../%, $(SYN_FILES)) -INC_FILES_REL = $(patsubst %, ../%, $(INC_FILES)) -XCI_FILES_REL = $(patsubst %, ../%, $(XCI_FILES)) -IP_TCL_FILES_REL = $(patsubst %, ../%, $(IP_TCL_FILES)) +SYN_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(SYN_FILES))) $(filter /% ./%,$(SYN_FILES)) +INC_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(INC_FILES))) $(filter /% ./%,$(INC_FILES)) +XCI_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(XCI_FILES))) $(filter /% ./%,$(XCI_FILES)) +IP_TCL_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(IP_TCL_FILES))) $(filter /% ./%,$(IP_TCL_FILES)) +CONFIG_TCL_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(CONFIG_TCL_FILES))) $(filter /% ./%,$(CONFIG_TCL_FILES)) ifdef XDC_FILES - XDC_FILES_REL = $(patsubst %, ../%, $(XDC_FILES)) + XDC_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(XDC_FILES))) $(filter /% ./%,$(XDC_FILES)) else XDC_FILES_REL = $(FPGA_TOP).xdc endif @@ -77,7 +78,7 @@ distclean: clean ################################################################### # Vivado project file -%.xpr: Makefile $(XCI_FILES_REL) $(IP_TCL_FILES_REL) +%.xpr: Makefile $(XCI_FILES_REL) $(IP_TCL_FILES_REL) $(CONFIG_TCL_FILES_REL) rm -rf defines.v touch defines.v for x in $(DEFS); do echo '`define' $$x >> defines.v; done @@ -87,6 +88,7 @@ distclean: clean for x in $(XDC_FILES_REL); do echo "add_files -fileset constrs_1 $$x" >> create_project.tcl; done for x in $(XCI_FILES_REL); do echo "import_ip $$x" >> create_project.tcl; done for x in $(IP_TCL_FILES_REL); do echo "source $$x" >> create_project.tcl; done + for x in $(CONFIG_TCL_FILES_REL); do echo "source $$x" >> create_project.tcl; done echo "exit" >> create_project.tcl vivado -nojournal -nolog -mode batch -source create_project.tcl diff --git a/fpga/mqnic/fb2CG/fpga_10g/common/vivado.mk b/fpga/mqnic/fb2CG/fpga_10g/common/vivado.mk index 83bcb8d90..d282a6afd 100644 --- a/fpga/mqnic/fb2CG/fpga_10g/common/vivado.mk +++ b/fpga/mqnic/fb2CG/fpga_10g/common/vivado.mk @@ -37,13 +37,14 @@ CONFIG ?= config.mk -include ../$(CONFIG) -SYN_FILES_REL = $(patsubst %, ../%, $(SYN_FILES)) -INC_FILES_REL = $(patsubst %, ../%, $(INC_FILES)) -XCI_FILES_REL = $(patsubst %, ../%, $(XCI_FILES)) -IP_TCL_FILES_REL = $(patsubst %, ../%, $(IP_TCL_FILES)) +SYN_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(SYN_FILES))) $(filter /% ./%,$(SYN_FILES)) +INC_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(INC_FILES))) $(filter /% ./%,$(INC_FILES)) +XCI_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(XCI_FILES))) $(filter /% ./%,$(XCI_FILES)) +IP_TCL_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(IP_TCL_FILES))) $(filter /% ./%,$(IP_TCL_FILES)) +CONFIG_TCL_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(CONFIG_TCL_FILES))) $(filter /% ./%,$(CONFIG_TCL_FILES)) ifdef XDC_FILES - XDC_FILES_REL = $(patsubst %, ../%, $(XDC_FILES)) + XDC_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(XDC_FILES))) $(filter /% ./%,$(XDC_FILES)) else XDC_FILES_REL = $(FPGA_TOP).xdc endif @@ -77,7 +78,7 @@ distclean: clean ################################################################### # Vivado project file -%.xpr: Makefile $(XCI_FILES_REL) $(IP_TCL_FILES_REL) +%.xpr: Makefile $(XCI_FILES_REL) $(IP_TCL_FILES_REL) $(CONFIG_TCL_FILES_REL) rm -rf defines.v touch defines.v for x in $(DEFS); do echo '`define' $$x >> defines.v; done @@ -87,6 +88,7 @@ distclean: clean for x in $(XDC_FILES_REL); do echo "add_files -fileset constrs_1 $$x" >> create_project.tcl; done for x in $(XCI_FILES_REL); do echo "import_ip $$x" >> create_project.tcl; done for x in $(IP_TCL_FILES_REL); do echo "source $$x" >> create_project.tcl; done + for x in $(CONFIG_TCL_FILES_REL); do echo "source $$x" >> create_project.tcl; done echo "exit" >> create_project.tcl vivado -nojournal -nolog -mode batch -source create_project.tcl diff --git a/fpga/mqnic/fb2CG/fpga_25g/common/vivado.mk b/fpga/mqnic/fb2CG/fpga_25g/common/vivado.mk index 83bcb8d90..d282a6afd 100644 --- a/fpga/mqnic/fb2CG/fpga_25g/common/vivado.mk +++ b/fpga/mqnic/fb2CG/fpga_25g/common/vivado.mk @@ -37,13 +37,14 @@ CONFIG ?= config.mk -include ../$(CONFIG) -SYN_FILES_REL = $(patsubst %, ../%, $(SYN_FILES)) -INC_FILES_REL = $(patsubst %, ../%, $(INC_FILES)) -XCI_FILES_REL = $(patsubst %, ../%, $(XCI_FILES)) -IP_TCL_FILES_REL = $(patsubst %, ../%, $(IP_TCL_FILES)) +SYN_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(SYN_FILES))) $(filter /% ./%,$(SYN_FILES)) +INC_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(INC_FILES))) $(filter /% ./%,$(INC_FILES)) +XCI_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(XCI_FILES))) $(filter /% ./%,$(XCI_FILES)) +IP_TCL_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(IP_TCL_FILES))) $(filter /% ./%,$(IP_TCL_FILES)) +CONFIG_TCL_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(CONFIG_TCL_FILES))) $(filter /% ./%,$(CONFIG_TCL_FILES)) ifdef XDC_FILES - XDC_FILES_REL = $(patsubst %, ../%, $(XDC_FILES)) + XDC_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(XDC_FILES))) $(filter /% ./%,$(XDC_FILES)) else XDC_FILES_REL = $(FPGA_TOP).xdc endif @@ -77,7 +78,7 @@ distclean: clean ################################################################### # Vivado project file -%.xpr: Makefile $(XCI_FILES_REL) $(IP_TCL_FILES_REL) +%.xpr: Makefile $(XCI_FILES_REL) $(IP_TCL_FILES_REL) $(CONFIG_TCL_FILES_REL) rm -rf defines.v touch defines.v for x in $(DEFS); do echo '`define' $$x >> defines.v; done @@ -87,6 +88,7 @@ distclean: clean for x in $(XDC_FILES_REL); do echo "add_files -fileset constrs_1 $$x" >> create_project.tcl; done for x in $(XCI_FILES_REL); do echo "import_ip $$x" >> create_project.tcl; done for x in $(IP_TCL_FILES_REL); do echo "source $$x" >> create_project.tcl; done + for x in $(CONFIG_TCL_FILES_REL); do echo "source $$x" >> create_project.tcl; done echo "exit" >> create_project.tcl vivado -nojournal -nolog -mode batch -source create_project.tcl diff --git a/fpga/mqnic_tdma/ADM_PCIE_9V3/fpga_10g/common/vivado.mk b/fpga/mqnic_tdma/ADM_PCIE_9V3/fpga_10g/common/vivado.mk index 83bcb8d90..d282a6afd 100644 --- a/fpga/mqnic_tdma/ADM_PCIE_9V3/fpga_10g/common/vivado.mk +++ b/fpga/mqnic_tdma/ADM_PCIE_9V3/fpga_10g/common/vivado.mk @@ -37,13 +37,14 @@ CONFIG ?= config.mk -include ../$(CONFIG) -SYN_FILES_REL = $(patsubst %, ../%, $(SYN_FILES)) -INC_FILES_REL = $(patsubst %, ../%, $(INC_FILES)) -XCI_FILES_REL = $(patsubst %, ../%, $(XCI_FILES)) -IP_TCL_FILES_REL = $(patsubst %, ../%, $(IP_TCL_FILES)) +SYN_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(SYN_FILES))) $(filter /% ./%,$(SYN_FILES)) +INC_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(INC_FILES))) $(filter /% ./%,$(INC_FILES)) +XCI_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(XCI_FILES))) $(filter /% ./%,$(XCI_FILES)) +IP_TCL_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(IP_TCL_FILES))) $(filter /% ./%,$(IP_TCL_FILES)) +CONFIG_TCL_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(CONFIG_TCL_FILES))) $(filter /% ./%,$(CONFIG_TCL_FILES)) ifdef XDC_FILES - XDC_FILES_REL = $(patsubst %, ../%, $(XDC_FILES)) + XDC_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(XDC_FILES))) $(filter /% ./%,$(XDC_FILES)) else XDC_FILES_REL = $(FPGA_TOP).xdc endif @@ -77,7 +78,7 @@ distclean: clean ################################################################### # Vivado project file -%.xpr: Makefile $(XCI_FILES_REL) $(IP_TCL_FILES_REL) +%.xpr: Makefile $(XCI_FILES_REL) $(IP_TCL_FILES_REL) $(CONFIG_TCL_FILES_REL) rm -rf defines.v touch defines.v for x in $(DEFS); do echo '`define' $$x >> defines.v; done @@ -87,6 +88,7 @@ distclean: clean for x in $(XDC_FILES_REL); do echo "add_files -fileset constrs_1 $$x" >> create_project.tcl; done for x in $(XCI_FILES_REL); do echo "import_ip $$x" >> create_project.tcl; done for x in $(IP_TCL_FILES_REL); do echo "source $$x" >> create_project.tcl; done + for x in $(CONFIG_TCL_FILES_REL); do echo "source $$x" >> create_project.tcl; done echo "exit" >> create_project.tcl vivado -nojournal -nolog -mode batch -source create_project.tcl diff --git a/fpga/mqnic_tdma/ExaNIC_X10/fpga/common/vivado.mk b/fpga/mqnic_tdma/ExaNIC_X10/fpga/common/vivado.mk index adc718121..477bbadb5 100644 --- a/fpga/mqnic_tdma/ExaNIC_X10/fpga/common/vivado.mk +++ b/fpga/mqnic_tdma/ExaNIC_X10/fpga/common/vivado.mk @@ -37,13 +37,14 @@ CONFIG ?= config.mk -include ../$(CONFIG) -SYN_FILES_REL = $(patsubst %, ../%, $(SYN_FILES)) -INC_FILES_REL = $(patsubst %, ../%, $(INC_FILES)) -XCI_FILES_REL = $(patsubst %, ../%, $(XCI_FILES)) -IP_TCL_FILES_REL = $(patsubst %, ../%, $(IP_TCL_FILES)) +SYN_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(SYN_FILES))) $(filter /% ./%,$(SYN_FILES)) +INC_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(INC_FILES))) $(filter /% ./%,$(INC_FILES)) +XCI_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(XCI_FILES))) $(filter /% ./%,$(XCI_FILES)) +IP_TCL_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(IP_TCL_FILES))) $(filter /% ./%,$(IP_TCL_FILES)) +CONFIG_TCL_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(CONFIG_TCL_FILES))) $(filter /% ./%,$(CONFIG_TCL_FILES)) ifdef XDC_FILES - XDC_FILES_REL = $(patsubst %, ../%, $(XDC_FILES)) + XDC_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(XDC_FILES))) $(filter /% ./%,$(XDC_FILES)) else XDC_FILES_REL = $(FPGA_TOP).xdc endif @@ -77,7 +78,7 @@ distclean: clean ################################################################### # Vivado project file -%.xpr: Makefile $(XCI_FILES_REL) $(IP_TCL_FILES_REL) +%.xpr: Makefile $(XCI_FILES_REL) $(IP_TCL_FILES_REL) $(CONFIG_TCL_FILES_REL) rm -rf defines.v touch defines.v for x in $(DEFS); do echo '`define' $$x >> defines.v; done @@ -87,6 +88,7 @@ distclean: clean for x in $(XDC_FILES_REL); do echo "add_files -fileset constrs_1 $$x" >> create_project.tcl; done for x in $(XCI_FILES_REL); do echo "import_ip $$x" >> create_project.tcl; done for x in $(IP_TCL_FILES_REL); do echo "source $$x" >> create_project.tcl; done + for x in $(CONFIG_TCL_FILES_REL); do echo "source $$x" >> create_project.tcl; done echo "exit" >> create_project.tcl vivado -nojournal -nolog -mode batch -source create_project.tcl diff --git a/fpga/mqnic_tdma/VCU108/fpga_10g/common/vivado.mk b/fpga/mqnic_tdma/VCU108/fpga_10g/common/vivado.mk index adc718121..477bbadb5 100644 --- a/fpga/mqnic_tdma/VCU108/fpga_10g/common/vivado.mk +++ b/fpga/mqnic_tdma/VCU108/fpga_10g/common/vivado.mk @@ -37,13 +37,14 @@ CONFIG ?= config.mk -include ../$(CONFIG) -SYN_FILES_REL = $(patsubst %, ../%, $(SYN_FILES)) -INC_FILES_REL = $(patsubst %, ../%, $(INC_FILES)) -XCI_FILES_REL = $(patsubst %, ../%, $(XCI_FILES)) -IP_TCL_FILES_REL = $(patsubst %, ../%, $(IP_TCL_FILES)) +SYN_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(SYN_FILES))) $(filter /% ./%,$(SYN_FILES)) +INC_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(INC_FILES))) $(filter /% ./%,$(INC_FILES)) +XCI_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(XCI_FILES))) $(filter /% ./%,$(XCI_FILES)) +IP_TCL_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(IP_TCL_FILES))) $(filter /% ./%,$(IP_TCL_FILES)) +CONFIG_TCL_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(CONFIG_TCL_FILES))) $(filter /% ./%,$(CONFIG_TCL_FILES)) ifdef XDC_FILES - XDC_FILES_REL = $(patsubst %, ../%, $(XDC_FILES)) + XDC_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(XDC_FILES))) $(filter /% ./%,$(XDC_FILES)) else XDC_FILES_REL = $(FPGA_TOP).xdc endif @@ -77,7 +78,7 @@ distclean: clean ################################################################### # Vivado project file -%.xpr: Makefile $(XCI_FILES_REL) $(IP_TCL_FILES_REL) +%.xpr: Makefile $(XCI_FILES_REL) $(IP_TCL_FILES_REL) $(CONFIG_TCL_FILES_REL) rm -rf defines.v touch defines.v for x in $(DEFS); do echo '`define' $$x >> defines.v; done @@ -87,6 +88,7 @@ distclean: clean for x in $(XDC_FILES_REL); do echo "add_files -fileset constrs_1 $$x" >> create_project.tcl; done for x in $(XCI_FILES_REL); do echo "import_ip $$x" >> create_project.tcl; done for x in $(IP_TCL_FILES_REL); do echo "source $$x" >> create_project.tcl; done + for x in $(CONFIG_TCL_FILES_REL); do echo "source $$x" >> create_project.tcl; done echo "exit" >> create_project.tcl vivado -nojournal -nolog -mode batch -source create_project.tcl diff --git a/fpga/mqnic_tdma/VCU118/fpga_10g/common/vivado.mk b/fpga/mqnic_tdma/VCU118/fpga_10g/common/vivado.mk index 83bcb8d90..d282a6afd 100644 --- a/fpga/mqnic_tdma/VCU118/fpga_10g/common/vivado.mk +++ b/fpga/mqnic_tdma/VCU118/fpga_10g/common/vivado.mk @@ -37,13 +37,14 @@ CONFIG ?= config.mk -include ../$(CONFIG) -SYN_FILES_REL = $(patsubst %, ../%, $(SYN_FILES)) -INC_FILES_REL = $(patsubst %, ../%, $(INC_FILES)) -XCI_FILES_REL = $(patsubst %, ../%, $(XCI_FILES)) -IP_TCL_FILES_REL = $(patsubst %, ../%, $(IP_TCL_FILES)) +SYN_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(SYN_FILES))) $(filter /% ./%,$(SYN_FILES)) +INC_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(INC_FILES))) $(filter /% ./%,$(INC_FILES)) +XCI_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(XCI_FILES))) $(filter /% ./%,$(XCI_FILES)) +IP_TCL_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(IP_TCL_FILES))) $(filter /% ./%,$(IP_TCL_FILES)) +CONFIG_TCL_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(CONFIG_TCL_FILES))) $(filter /% ./%,$(CONFIG_TCL_FILES)) ifdef XDC_FILES - XDC_FILES_REL = $(patsubst %, ../%, $(XDC_FILES)) + XDC_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(XDC_FILES))) $(filter /% ./%,$(XDC_FILES)) else XDC_FILES_REL = $(FPGA_TOP).xdc endif @@ -77,7 +78,7 @@ distclean: clean ################################################################### # Vivado project file -%.xpr: Makefile $(XCI_FILES_REL) $(IP_TCL_FILES_REL) +%.xpr: Makefile $(XCI_FILES_REL) $(IP_TCL_FILES_REL) $(CONFIG_TCL_FILES_REL) rm -rf defines.v touch defines.v for x in $(DEFS); do echo '`define' $$x >> defines.v; done @@ -87,6 +88,7 @@ distclean: clean for x in $(XDC_FILES_REL); do echo "add_files -fileset constrs_1 $$x" >> create_project.tcl; done for x in $(XCI_FILES_REL); do echo "import_ip $$x" >> create_project.tcl; done for x in $(IP_TCL_FILES_REL); do echo "source $$x" >> create_project.tcl; done + for x in $(CONFIG_TCL_FILES_REL); do echo "source $$x" >> create_project.tcl; done echo "exit" >> create_project.tcl vivado -nojournal -nolog -mode batch -source create_project.tcl