From 554369b33b49bfe707fcd7e8a11675fbbd07e4dd Mon Sep 17 00:00:00 2001 From: Alex Forencich Date: Fri, 24 Mar 2023 00:39:45 -0700 Subject: [PATCH] fpga/mqnic: Update makefile path handling Signed-off-by: Alex Forencich --- fpga/mqnic/250_SoC/fpga_100g/common/vivado.mk | 12 ++++++------ fpga/mqnic/250_SoC/fpga_25g/common/vivado.mk | 12 ++++++------ fpga/mqnic/ADM_PCIE_9V3/fpga_100g/common/vivado.mk | 12 ++++++------ fpga/mqnic/ADM_PCIE_9V3/fpga_25g/common/vivado.mk | 12 ++++++------ fpga/mqnic/AU200/fpga_100g/common/vivado.mk | 12 ++++++------ fpga/mqnic/AU200/fpga_25g/common/vivado.mk | 12 ++++++------ fpga/mqnic/AU250/fpga_100g/common/vivado.mk | 12 ++++++------ fpga/mqnic/AU250/fpga_25g/common/vivado.mk | 12 ++++++------ fpga/mqnic/AU280/fpga_100g/common/vivado.mk | 12 ++++++------ fpga/mqnic/AU280/fpga_25g/common/vivado.mk | 12 ++++++------ fpga/mqnic/AU50/fpga_100g/common/vivado.mk | 12 ++++++------ fpga/mqnic/AU50/fpga_25g/common/vivado.mk | 12 ++++++------ .../DE10_Agilex/fpga_100g/common/quartus_pro.mk | 8 ++++---- .../mqnic/DE10_Agilex/fpga_25g/common/quartus_pro.mk | 8 ++++---- .../DNPCIe_40G_KU_LL_2QSFP/fpga/common/vivado.mk | 12 ++++++------ fpga/mqnic/NetFPGA_SUME/fpga/common/vivado.mk | 12 ++++++------ fpga/mqnic/Nexus_K35_S/fpga/common/vivado.mk | 12 ++++++------ fpga/mqnic/Nexus_K3P_Q/fpga_25g/common/vivado.mk | 12 ++++++------ fpga/mqnic/Nexus_K3P_S/fpga_25g/common/vivado.mk | 12 ++++++------ fpga/mqnic/S10DX_DK/fpga_25g/common/quartus_pro.mk | 8 ++++---- fpga/mqnic/S10MX_DK/fpga_25g/common/quartus_pro.mk | 8 ++++---- fpga/mqnic/VCU108/fpga_25g/common/vivado.mk | 12 ++++++------ fpga/mqnic/VCU118/fpga_100g/common/vivado.mk | 12 ++++++------ fpga/mqnic/VCU118/fpga_25g/common/vivado.mk | 12 ++++++------ fpga/mqnic/VCU1525/fpga_100g/common/vivado.mk | 12 ++++++------ fpga/mqnic/VCU1525/fpga_25g/common/vivado.mk | 12 ++++++------ fpga/mqnic/XUPP3R/fpga_100g/common/vivado.mk | 12 ++++++------ fpga/mqnic/XUPP3R/fpga_25g/common/vivado.mk | 12 ++++++------ fpga/mqnic/ZCU102/fpga/common/vivado.mk | 12 ++++++------ fpga/mqnic/ZCU106/fpga_pcie/common/vivado.mk | 12 ++++++------ fpga/mqnic/ZCU106/fpga_zynqmp/common/vivado.mk | 12 ++++++------ fpga/mqnic/fb2CG/fpga_100g/common/vivado.mk | 12 ++++++------ fpga/mqnic/fb2CG/fpga_25g/common/vivado.mk | 12 ++++++------ 33 files changed, 190 insertions(+), 190 deletions(-) diff --git a/fpga/mqnic/250_SoC/fpga_100g/common/vivado.mk b/fpga/mqnic/250_SoC/fpga_100g/common/vivado.mk index 453cc7102..b1144edd1 100644 --- a/fpga/mqnic/250_SoC/fpga_100g/common/vivado.mk +++ b/fpga/mqnic/250_SoC/fpga_100g/common/vivado.mk @@ -40,14 +40,14 @@ CONFIG ?= config.mk FPGA_TOP ?= fpga PROJECT ?= $(FPGA_TOP) -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)) +SYN_FILES_REL = $(foreach p,$(SYN_FILES),$(if $(filter /% ./%,$p),$p,../$p)) +INC_FILES_REL = $(foreach p,$(INC_FILES),$(if $(filter /% ./%,$p),$p,../$p)) +XCI_FILES_REL = $(foreach p,$(XCI_FILES),$(if $(filter /% ./%,$p),$p,../$p)) +IP_TCL_FILES_REL = $(foreach p,$(IP_TCL_FILES),$(if $(filter /% ./%,$p),$p,../$p)) +CONFIG_TCL_FILES_REL = $(foreach p,$(CONFIG_TCL_FILES),$(if $(filter /% ./%,$p),$p,../$p)) ifdef XDC_FILES - XDC_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(XDC_FILES))) $(filter /% ./%,$(XDC_FILES)) + XDC_FILES_REL = $(foreach p,$(XDC_FILES),$(if $(filter /% ./%,$p),$p,../$p)) else XDC_FILES_REL = $(PROJECT).xdc endif diff --git a/fpga/mqnic/250_SoC/fpga_25g/common/vivado.mk b/fpga/mqnic/250_SoC/fpga_25g/common/vivado.mk index 453cc7102..b1144edd1 100644 --- a/fpga/mqnic/250_SoC/fpga_25g/common/vivado.mk +++ b/fpga/mqnic/250_SoC/fpga_25g/common/vivado.mk @@ -40,14 +40,14 @@ CONFIG ?= config.mk FPGA_TOP ?= fpga PROJECT ?= $(FPGA_TOP) -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)) +SYN_FILES_REL = $(foreach p,$(SYN_FILES),$(if $(filter /% ./%,$p),$p,../$p)) +INC_FILES_REL = $(foreach p,$(INC_FILES),$(if $(filter /% ./%,$p),$p,../$p)) +XCI_FILES_REL = $(foreach p,$(XCI_FILES),$(if $(filter /% ./%,$p),$p,../$p)) +IP_TCL_FILES_REL = $(foreach p,$(IP_TCL_FILES),$(if $(filter /% ./%,$p),$p,../$p)) +CONFIG_TCL_FILES_REL = $(foreach p,$(CONFIG_TCL_FILES),$(if $(filter /% ./%,$p),$p,../$p)) ifdef XDC_FILES - XDC_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(XDC_FILES))) $(filter /% ./%,$(XDC_FILES)) + XDC_FILES_REL = $(foreach p,$(XDC_FILES),$(if $(filter /% ./%,$p),$p,../$p)) else XDC_FILES_REL = $(PROJECT).xdc endif 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 453cc7102..b1144edd1 100644 --- a/fpga/mqnic/ADM_PCIE_9V3/fpga_100g/common/vivado.mk +++ b/fpga/mqnic/ADM_PCIE_9V3/fpga_100g/common/vivado.mk @@ -40,14 +40,14 @@ CONFIG ?= config.mk FPGA_TOP ?= fpga PROJECT ?= $(FPGA_TOP) -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)) +SYN_FILES_REL = $(foreach p,$(SYN_FILES),$(if $(filter /% ./%,$p),$p,../$p)) +INC_FILES_REL = $(foreach p,$(INC_FILES),$(if $(filter /% ./%,$p),$p,../$p)) +XCI_FILES_REL = $(foreach p,$(XCI_FILES),$(if $(filter /% ./%,$p),$p,../$p)) +IP_TCL_FILES_REL = $(foreach p,$(IP_TCL_FILES),$(if $(filter /% ./%,$p),$p,../$p)) +CONFIG_TCL_FILES_REL = $(foreach p,$(CONFIG_TCL_FILES),$(if $(filter /% ./%,$p),$p,../$p)) ifdef XDC_FILES - XDC_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(XDC_FILES))) $(filter /% ./%,$(XDC_FILES)) + XDC_FILES_REL = $(foreach p,$(XDC_FILES),$(if $(filter /% ./%,$p),$p,../$p)) else XDC_FILES_REL = $(PROJECT).xdc endif 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 453cc7102..b1144edd1 100644 --- a/fpga/mqnic/ADM_PCIE_9V3/fpga_25g/common/vivado.mk +++ b/fpga/mqnic/ADM_PCIE_9V3/fpga_25g/common/vivado.mk @@ -40,14 +40,14 @@ CONFIG ?= config.mk FPGA_TOP ?= fpga PROJECT ?= $(FPGA_TOP) -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)) +SYN_FILES_REL = $(foreach p,$(SYN_FILES),$(if $(filter /% ./%,$p),$p,../$p)) +INC_FILES_REL = $(foreach p,$(INC_FILES),$(if $(filter /% ./%,$p),$p,../$p)) +XCI_FILES_REL = $(foreach p,$(XCI_FILES),$(if $(filter /% ./%,$p),$p,../$p)) +IP_TCL_FILES_REL = $(foreach p,$(IP_TCL_FILES),$(if $(filter /% ./%,$p),$p,../$p)) +CONFIG_TCL_FILES_REL = $(foreach p,$(CONFIG_TCL_FILES),$(if $(filter /% ./%,$p),$p,../$p)) ifdef XDC_FILES - XDC_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(XDC_FILES))) $(filter /% ./%,$(XDC_FILES)) + XDC_FILES_REL = $(foreach p,$(XDC_FILES),$(if $(filter /% ./%,$p),$p,../$p)) else XDC_FILES_REL = $(PROJECT).xdc endif diff --git a/fpga/mqnic/AU200/fpga_100g/common/vivado.mk b/fpga/mqnic/AU200/fpga_100g/common/vivado.mk index 453cc7102..b1144edd1 100644 --- a/fpga/mqnic/AU200/fpga_100g/common/vivado.mk +++ b/fpga/mqnic/AU200/fpga_100g/common/vivado.mk @@ -40,14 +40,14 @@ CONFIG ?= config.mk FPGA_TOP ?= fpga PROJECT ?= $(FPGA_TOP) -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)) +SYN_FILES_REL = $(foreach p,$(SYN_FILES),$(if $(filter /% ./%,$p),$p,../$p)) +INC_FILES_REL = $(foreach p,$(INC_FILES),$(if $(filter /% ./%,$p),$p,../$p)) +XCI_FILES_REL = $(foreach p,$(XCI_FILES),$(if $(filter /% ./%,$p),$p,../$p)) +IP_TCL_FILES_REL = $(foreach p,$(IP_TCL_FILES),$(if $(filter /% ./%,$p),$p,../$p)) +CONFIG_TCL_FILES_REL = $(foreach p,$(CONFIG_TCL_FILES),$(if $(filter /% ./%,$p),$p,../$p)) ifdef XDC_FILES - XDC_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(XDC_FILES))) $(filter /% ./%,$(XDC_FILES)) + XDC_FILES_REL = $(foreach p,$(XDC_FILES),$(if $(filter /% ./%,$p),$p,../$p)) else XDC_FILES_REL = $(PROJECT).xdc endif diff --git a/fpga/mqnic/AU200/fpga_25g/common/vivado.mk b/fpga/mqnic/AU200/fpga_25g/common/vivado.mk index 453cc7102..b1144edd1 100644 --- a/fpga/mqnic/AU200/fpga_25g/common/vivado.mk +++ b/fpga/mqnic/AU200/fpga_25g/common/vivado.mk @@ -40,14 +40,14 @@ CONFIG ?= config.mk FPGA_TOP ?= fpga PROJECT ?= $(FPGA_TOP) -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)) +SYN_FILES_REL = $(foreach p,$(SYN_FILES),$(if $(filter /% ./%,$p),$p,../$p)) +INC_FILES_REL = $(foreach p,$(INC_FILES),$(if $(filter /% ./%,$p),$p,../$p)) +XCI_FILES_REL = $(foreach p,$(XCI_FILES),$(if $(filter /% ./%,$p),$p,../$p)) +IP_TCL_FILES_REL = $(foreach p,$(IP_TCL_FILES),$(if $(filter /% ./%,$p),$p,../$p)) +CONFIG_TCL_FILES_REL = $(foreach p,$(CONFIG_TCL_FILES),$(if $(filter /% ./%,$p),$p,../$p)) ifdef XDC_FILES - XDC_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(XDC_FILES))) $(filter /% ./%,$(XDC_FILES)) + XDC_FILES_REL = $(foreach p,$(XDC_FILES),$(if $(filter /% ./%,$p),$p,../$p)) else XDC_FILES_REL = $(PROJECT).xdc endif diff --git a/fpga/mqnic/AU250/fpga_100g/common/vivado.mk b/fpga/mqnic/AU250/fpga_100g/common/vivado.mk index 453cc7102..b1144edd1 100644 --- a/fpga/mqnic/AU250/fpga_100g/common/vivado.mk +++ b/fpga/mqnic/AU250/fpga_100g/common/vivado.mk @@ -40,14 +40,14 @@ CONFIG ?= config.mk FPGA_TOP ?= fpga PROJECT ?= $(FPGA_TOP) -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)) +SYN_FILES_REL = $(foreach p,$(SYN_FILES),$(if $(filter /% ./%,$p),$p,../$p)) +INC_FILES_REL = $(foreach p,$(INC_FILES),$(if $(filter /% ./%,$p),$p,../$p)) +XCI_FILES_REL = $(foreach p,$(XCI_FILES),$(if $(filter /% ./%,$p),$p,../$p)) +IP_TCL_FILES_REL = $(foreach p,$(IP_TCL_FILES),$(if $(filter /% ./%,$p),$p,../$p)) +CONFIG_TCL_FILES_REL = $(foreach p,$(CONFIG_TCL_FILES),$(if $(filter /% ./%,$p),$p,../$p)) ifdef XDC_FILES - XDC_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(XDC_FILES))) $(filter /% ./%,$(XDC_FILES)) + XDC_FILES_REL = $(foreach p,$(XDC_FILES),$(if $(filter /% ./%,$p),$p,../$p)) else XDC_FILES_REL = $(PROJECT).xdc endif diff --git a/fpga/mqnic/AU250/fpga_25g/common/vivado.mk b/fpga/mqnic/AU250/fpga_25g/common/vivado.mk index 453cc7102..b1144edd1 100644 --- a/fpga/mqnic/AU250/fpga_25g/common/vivado.mk +++ b/fpga/mqnic/AU250/fpga_25g/common/vivado.mk @@ -40,14 +40,14 @@ CONFIG ?= config.mk FPGA_TOP ?= fpga PROJECT ?= $(FPGA_TOP) -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)) +SYN_FILES_REL = $(foreach p,$(SYN_FILES),$(if $(filter /% ./%,$p),$p,../$p)) +INC_FILES_REL = $(foreach p,$(INC_FILES),$(if $(filter /% ./%,$p),$p,../$p)) +XCI_FILES_REL = $(foreach p,$(XCI_FILES),$(if $(filter /% ./%,$p),$p,../$p)) +IP_TCL_FILES_REL = $(foreach p,$(IP_TCL_FILES),$(if $(filter /% ./%,$p),$p,../$p)) +CONFIG_TCL_FILES_REL = $(foreach p,$(CONFIG_TCL_FILES),$(if $(filter /% ./%,$p),$p,../$p)) ifdef XDC_FILES - XDC_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(XDC_FILES))) $(filter /% ./%,$(XDC_FILES)) + XDC_FILES_REL = $(foreach p,$(XDC_FILES),$(if $(filter /% ./%,$p),$p,../$p)) else XDC_FILES_REL = $(PROJECT).xdc endif diff --git a/fpga/mqnic/AU280/fpga_100g/common/vivado.mk b/fpga/mqnic/AU280/fpga_100g/common/vivado.mk index 453cc7102..b1144edd1 100644 --- a/fpga/mqnic/AU280/fpga_100g/common/vivado.mk +++ b/fpga/mqnic/AU280/fpga_100g/common/vivado.mk @@ -40,14 +40,14 @@ CONFIG ?= config.mk FPGA_TOP ?= fpga PROJECT ?= $(FPGA_TOP) -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)) +SYN_FILES_REL = $(foreach p,$(SYN_FILES),$(if $(filter /% ./%,$p),$p,../$p)) +INC_FILES_REL = $(foreach p,$(INC_FILES),$(if $(filter /% ./%,$p),$p,../$p)) +XCI_FILES_REL = $(foreach p,$(XCI_FILES),$(if $(filter /% ./%,$p),$p,../$p)) +IP_TCL_FILES_REL = $(foreach p,$(IP_TCL_FILES),$(if $(filter /% ./%,$p),$p,../$p)) +CONFIG_TCL_FILES_REL = $(foreach p,$(CONFIG_TCL_FILES),$(if $(filter /% ./%,$p),$p,../$p)) ifdef XDC_FILES - XDC_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(XDC_FILES))) $(filter /% ./%,$(XDC_FILES)) + XDC_FILES_REL = $(foreach p,$(XDC_FILES),$(if $(filter /% ./%,$p),$p,../$p)) else XDC_FILES_REL = $(PROJECT).xdc endif diff --git a/fpga/mqnic/AU280/fpga_25g/common/vivado.mk b/fpga/mqnic/AU280/fpga_25g/common/vivado.mk index 453cc7102..b1144edd1 100644 --- a/fpga/mqnic/AU280/fpga_25g/common/vivado.mk +++ b/fpga/mqnic/AU280/fpga_25g/common/vivado.mk @@ -40,14 +40,14 @@ CONFIG ?= config.mk FPGA_TOP ?= fpga PROJECT ?= $(FPGA_TOP) -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)) +SYN_FILES_REL = $(foreach p,$(SYN_FILES),$(if $(filter /% ./%,$p),$p,../$p)) +INC_FILES_REL = $(foreach p,$(INC_FILES),$(if $(filter /% ./%,$p),$p,../$p)) +XCI_FILES_REL = $(foreach p,$(XCI_FILES),$(if $(filter /% ./%,$p),$p,../$p)) +IP_TCL_FILES_REL = $(foreach p,$(IP_TCL_FILES),$(if $(filter /% ./%,$p),$p,../$p)) +CONFIG_TCL_FILES_REL = $(foreach p,$(CONFIG_TCL_FILES),$(if $(filter /% ./%,$p),$p,../$p)) ifdef XDC_FILES - XDC_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(XDC_FILES))) $(filter /% ./%,$(XDC_FILES)) + XDC_FILES_REL = $(foreach p,$(XDC_FILES),$(if $(filter /% ./%,$p),$p,../$p)) else XDC_FILES_REL = $(PROJECT).xdc endif diff --git a/fpga/mqnic/AU50/fpga_100g/common/vivado.mk b/fpga/mqnic/AU50/fpga_100g/common/vivado.mk index 453cc7102..b1144edd1 100644 --- a/fpga/mqnic/AU50/fpga_100g/common/vivado.mk +++ b/fpga/mqnic/AU50/fpga_100g/common/vivado.mk @@ -40,14 +40,14 @@ CONFIG ?= config.mk FPGA_TOP ?= fpga PROJECT ?= $(FPGA_TOP) -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)) +SYN_FILES_REL = $(foreach p,$(SYN_FILES),$(if $(filter /% ./%,$p),$p,../$p)) +INC_FILES_REL = $(foreach p,$(INC_FILES),$(if $(filter /% ./%,$p),$p,../$p)) +XCI_FILES_REL = $(foreach p,$(XCI_FILES),$(if $(filter /% ./%,$p),$p,../$p)) +IP_TCL_FILES_REL = $(foreach p,$(IP_TCL_FILES),$(if $(filter /% ./%,$p),$p,../$p)) +CONFIG_TCL_FILES_REL = $(foreach p,$(CONFIG_TCL_FILES),$(if $(filter /% ./%,$p),$p,../$p)) ifdef XDC_FILES - XDC_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(XDC_FILES))) $(filter /% ./%,$(XDC_FILES)) + XDC_FILES_REL = $(foreach p,$(XDC_FILES),$(if $(filter /% ./%,$p),$p,../$p)) else XDC_FILES_REL = $(PROJECT).xdc endif diff --git a/fpga/mqnic/AU50/fpga_25g/common/vivado.mk b/fpga/mqnic/AU50/fpga_25g/common/vivado.mk index 453cc7102..b1144edd1 100644 --- a/fpga/mqnic/AU50/fpga_25g/common/vivado.mk +++ b/fpga/mqnic/AU50/fpga_25g/common/vivado.mk @@ -40,14 +40,14 @@ CONFIG ?= config.mk FPGA_TOP ?= fpga PROJECT ?= $(FPGA_TOP) -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)) +SYN_FILES_REL = $(foreach p,$(SYN_FILES),$(if $(filter /% ./%,$p),$p,../$p)) +INC_FILES_REL = $(foreach p,$(INC_FILES),$(if $(filter /% ./%,$p),$p,../$p)) +XCI_FILES_REL = $(foreach p,$(XCI_FILES),$(if $(filter /% ./%,$p),$p,../$p)) +IP_TCL_FILES_REL = $(foreach p,$(IP_TCL_FILES),$(if $(filter /% ./%,$p),$p,../$p)) +CONFIG_TCL_FILES_REL = $(foreach p,$(CONFIG_TCL_FILES),$(if $(filter /% ./%,$p),$p,../$p)) ifdef XDC_FILES - XDC_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(XDC_FILES))) $(filter /% ./%,$(XDC_FILES)) + XDC_FILES_REL = $(foreach p,$(XDC_FILES),$(if $(filter /% ./%,$p),$p,../$p)) else XDC_FILES_REL = $(PROJECT).xdc endif diff --git a/fpga/mqnic/DE10_Agilex/fpga_100g/common/quartus_pro.mk b/fpga/mqnic/DE10_Agilex/fpga_100g/common/quartus_pro.mk index f9a9fdccd..f7e9cea62 100644 --- a/fpga/mqnic/DE10_Agilex/fpga_100g/common/quartus_pro.mk +++ b/fpga/mqnic/DE10_Agilex/fpga_100g/common/quartus_pro.mk @@ -39,7 +39,7 @@ CONFIG ?= config.mk -include ../$(CONFIG) -SYN_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(SYN_FILES))) $(filter /% ./%,$(SYN_FILES)) +SYN_FILES_REL = $(foreach p,$(SYN_FILES),$(if $(filter /% ./%,$p),$p,../$p)) IP_FILES_REL = $(patsubst %, ../%, $(IP_FILES)) IP_FILES_INT = $(patsubst %, ip/%, $(notdir $(IP_FILES))) @@ -48,15 +48,15 @@ IP_TCL_FILES_REL = $(patsubst %, ../%, $(IP_TCL_FILES)) IP_TCL_FILES_INT = $(patsubst %, ip/%, $(notdir $(IP_TCL_FILES))) IP_TCL_FILES_IP_INT = $(patsubst %.tcl, ip/%.ip, $(notdir $(IP_TCL_FILES))) -CONFIG_TCL_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(CONFIG_TCL_FILES))) $(filter /% ./%,$(CONFIG_TCL_FILES)) +CONFIG_TCL_FILES_REL = $(foreach p,$(CONFIG_TCL_FILES),$(if $(filter /% ./%,$p),$p,../$p)) ifdef QSF_FILES - QSF_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(QSF_FILES))) $(filter /% ./%,$(QSF_FILES)) + QSF_FILES_REL = $(foreach p,$(QSF_FILES),$(if $(filter /% ./%,$p),$p,../$p)) else QSF_FILES_REL = ../$(FPGA_TOP).qsf endif -SDC_FILES_REL = $(patsubst %, ../%, $(SDC_FILES)) +SDC_FILES_REL = $(foreach p,$(SDC_FILES),$(if $(filter /% ./%,$p),$p,../$p)) ASSIGNMENT_FILES = $(FPGA_TOP).qpf $(FPGA_TOP).qsf diff --git a/fpga/mqnic/DE10_Agilex/fpga_25g/common/quartus_pro.mk b/fpga/mqnic/DE10_Agilex/fpga_25g/common/quartus_pro.mk index f9a9fdccd..f7e9cea62 100644 --- a/fpga/mqnic/DE10_Agilex/fpga_25g/common/quartus_pro.mk +++ b/fpga/mqnic/DE10_Agilex/fpga_25g/common/quartus_pro.mk @@ -39,7 +39,7 @@ CONFIG ?= config.mk -include ../$(CONFIG) -SYN_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(SYN_FILES))) $(filter /% ./%,$(SYN_FILES)) +SYN_FILES_REL = $(foreach p,$(SYN_FILES),$(if $(filter /% ./%,$p),$p,../$p)) IP_FILES_REL = $(patsubst %, ../%, $(IP_FILES)) IP_FILES_INT = $(patsubst %, ip/%, $(notdir $(IP_FILES))) @@ -48,15 +48,15 @@ IP_TCL_FILES_REL = $(patsubst %, ../%, $(IP_TCL_FILES)) IP_TCL_FILES_INT = $(patsubst %, ip/%, $(notdir $(IP_TCL_FILES))) IP_TCL_FILES_IP_INT = $(patsubst %.tcl, ip/%.ip, $(notdir $(IP_TCL_FILES))) -CONFIG_TCL_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(CONFIG_TCL_FILES))) $(filter /% ./%,$(CONFIG_TCL_FILES)) +CONFIG_TCL_FILES_REL = $(foreach p,$(CONFIG_TCL_FILES),$(if $(filter /% ./%,$p),$p,../$p)) ifdef QSF_FILES - QSF_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(QSF_FILES))) $(filter /% ./%,$(QSF_FILES)) + QSF_FILES_REL = $(foreach p,$(QSF_FILES),$(if $(filter /% ./%,$p),$p,../$p)) else QSF_FILES_REL = ../$(FPGA_TOP).qsf endif -SDC_FILES_REL = $(patsubst %, ../%, $(SDC_FILES)) +SDC_FILES_REL = $(foreach p,$(SDC_FILES),$(if $(filter /% ./%,$p),$p,../$p)) ASSIGNMENT_FILES = $(FPGA_TOP).qpf $(FPGA_TOP).qsf diff --git a/fpga/mqnic/DNPCIe_40G_KU_LL_2QSFP/fpga/common/vivado.mk b/fpga/mqnic/DNPCIe_40G_KU_LL_2QSFP/fpga/common/vivado.mk index de75346c0..0ee9a37d9 100644 --- a/fpga/mqnic/DNPCIe_40G_KU_LL_2QSFP/fpga/common/vivado.mk +++ b/fpga/mqnic/DNPCIe_40G_KU_LL_2QSFP/fpga/common/vivado.mk @@ -40,14 +40,14 @@ CONFIG ?= config.mk FPGA_TOP ?= fpga PROJECT ?= $(FPGA_TOP) -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)) +SYN_FILES_REL = $(foreach p,$(SYN_FILES),$(if $(filter /% ./%,$p),$p,../$p)) +INC_FILES_REL = $(foreach p,$(INC_FILES),$(if $(filter /% ./%,$p),$p,../$p)) +XCI_FILES_REL = $(foreach p,$(XCI_FILES),$(if $(filter /% ./%,$p),$p,../$p)) +IP_TCL_FILES_REL = $(foreach p,$(IP_TCL_FILES),$(if $(filter /% ./%,$p),$p,../$p)) +CONFIG_TCL_FILES_REL = $(foreach p,$(CONFIG_TCL_FILES),$(if $(filter /% ./%,$p),$p,../$p)) ifdef XDC_FILES - XDC_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(XDC_FILES))) $(filter /% ./%,$(XDC_FILES)) + XDC_FILES_REL = $(foreach p,$(XDC_FILES),$(if $(filter /% ./%,$p),$p,../$p)) else XDC_FILES_REL = $(PROJECT).xdc endif diff --git a/fpga/mqnic/NetFPGA_SUME/fpga/common/vivado.mk b/fpga/mqnic/NetFPGA_SUME/fpga/common/vivado.mk index de75346c0..0ee9a37d9 100644 --- a/fpga/mqnic/NetFPGA_SUME/fpga/common/vivado.mk +++ b/fpga/mqnic/NetFPGA_SUME/fpga/common/vivado.mk @@ -40,14 +40,14 @@ CONFIG ?= config.mk FPGA_TOP ?= fpga PROJECT ?= $(FPGA_TOP) -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)) +SYN_FILES_REL = $(foreach p,$(SYN_FILES),$(if $(filter /% ./%,$p),$p,../$p)) +INC_FILES_REL = $(foreach p,$(INC_FILES),$(if $(filter /% ./%,$p),$p,../$p)) +XCI_FILES_REL = $(foreach p,$(XCI_FILES),$(if $(filter /% ./%,$p),$p,../$p)) +IP_TCL_FILES_REL = $(foreach p,$(IP_TCL_FILES),$(if $(filter /% ./%,$p),$p,../$p)) +CONFIG_TCL_FILES_REL = $(foreach p,$(CONFIG_TCL_FILES),$(if $(filter /% ./%,$p),$p,../$p)) ifdef XDC_FILES - XDC_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(XDC_FILES))) $(filter /% ./%,$(XDC_FILES)) + XDC_FILES_REL = $(foreach p,$(XDC_FILES),$(if $(filter /% ./%,$p),$p,../$p)) else XDC_FILES_REL = $(PROJECT).xdc endif diff --git a/fpga/mqnic/Nexus_K35_S/fpga/common/vivado.mk b/fpga/mqnic/Nexus_K35_S/fpga/common/vivado.mk index de75346c0..0ee9a37d9 100644 --- a/fpga/mqnic/Nexus_K35_S/fpga/common/vivado.mk +++ b/fpga/mqnic/Nexus_K35_S/fpga/common/vivado.mk @@ -40,14 +40,14 @@ CONFIG ?= config.mk FPGA_TOP ?= fpga PROJECT ?= $(FPGA_TOP) -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)) +SYN_FILES_REL = $(foreach p,$(SYN_FILES),$(if $(filter /% ./%,$p),$p,../$p)) +INC_FILES_REL = $(foreach p,$(INC_FILES),$(if $(filter /% ./%,$p),$p,../$p)) +XCI_FILES_REL = $(foreach p,$(XCI_FILES),$(if $(filter /% ./%,$p),$p,../$p)) +IP_TCL_FILES_REL = $(foreach p,$(IP_TCL_FILES),$(if $(filter /% ./%,$p),$p,../$p)) +CONFIG_TCL_FILES_REL = $(foreach p,$(CONFIG_TCL_FILES),$(if $(filter /% ./%,$p),$p,../$p)) ifdef XDC_FILES - XDC_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(XDC_FILES))) $(filter /% ./%,$(XDC_FILES)) + XDC_FILES_REL = $(foreach p,$(XDC_FILES),$(if $(filter /% ./%,$p),$p,../$p)) else XDC_FILES_REL = $(PROJECT).xdc endif diff --git a/fpga/mqnic/Nexus_K3P_Q/fpga_25g/common/vivado.mk b/fpga/mqnic/Nexus_K3P_Q/fpga_25g/common/vivado.mk index 453cc7102..b1144edd1 100644 --- a/fpga/mqnic/Nexus_K3P_Q/fpga_25g/common/vivado.mk +++ b/fpga/mqnic/Nexus_K3P_Q/fpga_25g/common/vivado.mk @@ -40,14 +40,14 @@ CONFIG ?= config.mk FPGA_TOP ?= fpga PROJECT ?= $(FPGA_TOP) -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)) +SYN_FILES_REL = $(foreach p,$(SYN_FILES),$(if $(filter /% ./%,$p),$p,../$p)) +INC_FILES_REL = $(foreach p,$(INC_FILES),$(if $(filter /% ./%,$p),$p,../$p)) +XCI_FILES_REL = $(foreach p,$(XCI_FILES),$(if $(filter /% ./%,$p),$p,../$p)) +IP_TCL_FILES_REL = $(foreach p,$(IP_TCL_FILES),$(if $(filter /% ./%,$p),$p,../$p)) +CONFIG_TCL_FILES_REL = $(foreach p,$(CONFIG_TCL_FILES),$(if $(filter /% ./%,$p),$p,../$p)) ifdef XDC_FILES - XDC_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(XDC_FILES))) $(filter /% ./%,$(XDC_FILES)) + XDC_FILES_REL = $(foreach p,$(XDC_FILES),$(if $(filter /% ./%,$p),$p,../$p)) else XDC_FILES_REL = $(PROJECT).xdc endif diff --git a/fpga/mqnic/Nexus_K3P_S/fpga_25g/common/vivado.mk b/fpga/mqnic/Nexus_K3P_S/fpga_25g/common/vivado.mk index 453cc7102..b1144edd1 100644 --- a/fpga/mqnic/Nexus_K3P_S/fpga_25g/common/vivado.mk +++ b/fpga/mqnic/Nexus_K3P_S/fpga_25g/common/vivado.mk @@ -40,14 +40,14 @@ CONFIG ?= config.mk FPGA_TOP ?= fpga PROJECT ?= $(FPGA_TOP) -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)) +SYN_FILES_REL = $(foreach p,$(SYN_FILES),$(if $(filter /% ./%,$p),$p,../$p)) +INC_FILES_REL = $(foreach p,$(INC_FILES),$(if $(filter /% ./%,$p),$p,../$p)) +XCI_FILES_REL = $(foreach p,$(XCI_FILES),$(if $(filter /% ./%,$p),$p,../$p)) +IP_TCL_FILES_REL = $(foreach p,$(IP_TCL_FILES),$(if $(filter /% ./%,$p),$p,../$p)) +CONFIG_TCL_FILES_REL = $(foreach p,$(CONFIG_TCL_FILES),$(if $(filter /% ./%,$p),$p,../$p)) ifdef XDC_FILES - XDC_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(XDC_FILES))) $(filter /% ./%,$(XDC_FILES)) + XDC_FILES_REL = $(foreach p,$(XDC_FILES),$(if $(filter /% ./%,$p),$p,../$p)) else XDC_FILES_REL = $(PROJECT).xdc endif diff --git a/fpga/mqnic/S10DX_DK/fpga_25g/common/quartus_pro.mk b/fpga/mqnic/S10DX_DK/fpga_25g/common/quartus_pro.mk index f9a9fdccd..f7e9cea62 100644 --- a/fpga/mqnic/S10DX_DK/fpga_25g/common/quartus_pro.mk +++ b/fpga/mqnic/S10DX_DK/fpga_25g/common/quartus_pro.mk @@ -39,7 +39,7 @@ CONFIG ?= config.mk -include ../$(CONFIG) -SYN_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(SYN_FILES))) $(filter /% ./%,$(SYN_FILES)) +SYN_FILES_REL = $(foreach p,$(SYN_FILES),$(if $(filter /% ./%,$p),$p,../$p)) IP_FILES_REL = $(patsubst %, ../%, $(IP_FILES)) IP_FILES_INT = $(patsubst %, ip/%, $(notdir $(IP_FILES))) @@ -48,15 +48,15 @@ IP_TCL_FILES_REL = $(patsubst %, ../%, $(IP_TCL_FILES)) IP_TCL_FILES_INT = $(patsubst %, ip/%, $(notdir $(IP_TCL_FILES))) IP_TCL_FILES_IP_INT = $(patsubst %.tcl, ip/%.ip, $(notdir $(IP_TCL_FILES))) -CONFIG_TCL_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(CONFIG_TCL_FILES))) $(filter /% ./%,$(CONFIG_TCL_FILES)) +CONFIG_TCL_FILES_REL = $(foreach p,$(CONFIG_TCL_FILES),$(if $(filter /% ./%,$p),$p,../$p)) ifdef QSF_FILES - QSF_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(QSF_FILES))) $(filter /% ./%,$(QSF_FILES)) + QSF_FILES_REL = $(foreach p,$(QSF_FILES),$(if $(filter /% ./%,$p),$p,../$p)) else QSF_FILES_REL = ../$(FPGA_TOP).qsf endif -SDC_FILES_REL = $(patsubst %, ../%, $(SDC_FILES)) +SDC_FILES_REL = $(foreach p,$(SDC_FILES),$(if $(filter /% ./%,$p),$p,../$p)) ASSIGNMENT_FILES = $(FPGA_TOP).qpf $(FPGA_TOP).qsf diff --git a/fpga/mqnic/S10MX_DK/fpga_25g/common/quartus_pro.mk b/fpga/mqnic/S10MX_DK/fpga_25g/common/quartus_pro.mk index f9a9fdccd..f7e9cea62 100644 --- a/fpga/mqnic/S10MX_DK/fpga_25g/common/quartus_pro.mk +++ b/fpga/mqnic/S10MX_DK/fpga_25g/common/quartus_pro.mk @@ -39,7 +39,7 @@ CONFIG ?= config.mk -include ../$(CONFIG) -SYN_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(SYN_FILES))) $(filter /% ./%,$(SYN_FILES)) +SYN_FILES_REL = $(foreach p,$(SYN_FILES),$(if $(filter /% ./%,$p),$p,../$p)) IP_FILES_REL = $(patsubst %, ../%, $(IP_FILES)) IP_FILES_INT = $(patsubst %, ip/%, $(notdir $(IP_FILES))) @@ -48,15 +48,15 @@ IP_TCL_FILES_REL = $(patsubst %, ../%, $(IP_TCL_FILES)) IP_TCL_FILES_INT = $(patsubst %, ip/%, $(notdir $(IP_TCL_FILES))) IP_TCL_FILES_IP_INT = $(patsubst %.tcl, ip/%.ip, $(notdir $(IP_TCL_FILES))) -CONFIG_TCL_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(CONFIG_TCL_FILES))) $(filter /% ./%,$(CONFIG_TCL_FILES)) +CONFIG_TCL_FILES_REL = $(foreach p,$(CONFIG_TCL_FILES),$(if $(filter /% ./%,$p),$p,../$p)) ifdef QSF_FILES - QSF_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(QSF_FILES))) $(filter /% ./%,$(QSF_FILES)) + QSF_FILES_REL = $(foreach p,$(QSF_FILES),$(if $(filter /% ./%,$p),$p,../$p)) else QSF_FILES_REL = ../$(FPGA_TOP).qsf endif -SDC_FILES_REL = $(patsubst %, ../%, $(SDC_FILES)) +SDC_FILES_REL = $(foreach p,$(SDC_FILES),$(if $(filter /% ./%,$p),$p,../$p)) ASSIGNMENT_FILES = $(FPGA_TOP).qpf $(FPGA_TOP).qsf diff --git a/fpga/mqnic/VCU108/fpga_25g/common/vivado.mk b/fpga/mqnic/VCU108/fpga_25g/common/vivado.mk index de75346c0..0ee9a37d9 100644 --- a/fpga/mqnic/VCU108/fpga_25g/common/vivado.mk +++ b/fpga/mqnic/VCU108/fpga_25g/common/vivado.mk @@ -40,14 +40,14 @@ CONFIG ?= config.mk FPGA_TOP ?= fpga PROJECT ?= $(FPGA_TOP) -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)) +SYN_FILES_REL = $(foreach p,$(SYN_FILES),$(if $(filter /% ./%,$p),$p,../$p)) +INC_FILES_REL = $(foreach p,$(INC_FILES),$(if $(filter /% ./%,$p),$p,../$p)) +XCI_FILES_REL = $(foreach p,$(XCI_FILES),$(if $(filter /% ./%,$p),$p,../$p)) +IP_TCL_FILES_REL = $(foreach p,$(IP_TCL_FILES),$(if $(filter /% ./%,$p),$p,../$p)) +CONFIG_TCL_FILES_REL = $(foreach p,$(CONFIG_TCL_FILES),$(if $(filter /% ./%,$p),$p,../$p)) ifdef XDC_FILES - XDC_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(XDC_FILES))) $(filter /% ./%,$(XDC_FILES)) + XDC_FILES_REL = $(foreach p,$(XDC_FILES),$(if $(filter /% ./%,$p),$p,../$p)) else XDC_FILES_REL = $(PROJECT).xdc endif diff --git a/fpga/mqnic/VCU118/fpga_100g/common/vivado.mk b/fpga/mqnic/VCU118/fpga_100g/common/vivado.mk index 453cc7102..b1144edd1 100644 --- a/fpga/mqnic/VCU118/fpga_100g/common/vivado.mk +++ b/fpga/mqnic/VCU118/fpga_100g/common/vivado.mk @@ -40,14 +40,14 @@ CONFIG ?= config.mk FPGA_TOP ?= fpga PROJECT ?= $(FPGA_TOP) -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)) +SYN_FILES_REL = $(foreach p,$(SYN_FILES),$(if $(filter /% ./%,$p),$p,../$p)) +INC_FILES_REL = $(foreach p,$(INC_FILES),$(if $(filter /% ./%,$p),$p,../$p)) +XCI_FILES_REL = $(foreach p,$(XCI_FILES),$(if $(filter /% ./%,$p),$p,../$p)) +IP_TCL_FILES_REL = $(foreach p,$(IP_TCL_FILES),$(if $(filter /% ./%,$p),$p,../$p)) +CONFIG_TCL_FILES_REL = $(foreach p,$(CONFIG_TCL_FILES),$(if $(filter /% ./%,$p),$p,../$p)) ifdef XDC_FILES - XDC_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(XDC_FILES))) $(filter /% ./%,$(XDC_FILES)) + XDC_FILES_REL = $(foreach p,$(XDC_FILES),$(if $(filter /% ./%,$p),$p,../$p)) else XDC_FILES_REL = $(PROJECT).xdc endif diff --git a/fpga/mqnic/VCU118/fpga_25g/common/vivado.mk b/fpga/mqnic/VCU118/fpga_25g/common/vivado.mk index 453cc7102..b1144edd1 100644 --- a/fpga/mqnic/VCU118/fpga_25g/common/vivado.mk +++ b/fpga/mqnic/VCU118/fpga_25g/common/vivado.mk @@ -40,14 +40,14 @@ CONFIG ?= config.mk FPGA_TOP ?= fpga PROJECT ?= $(FPGA_TOP) -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)) +SYN_FILES_REL = $(foreach p,$(SYN_FILES),$(if $(filter /% ./%,$p),$p,../$p)) +INC_FILES_REL = $(foreach p,$(INC_FILES),$(if $(filter /% ./%,$p),$p,../$p)) +XCI_FILES_REL = $(foreach p,$(XCI_FILES),$(if $(filter /% ./%,$p),$p,../$p)) +IP_TCL_FILES_REL = $(foreach p,$(IP_TCL_FILES),$(if $(filter /% ./%,$p),$p,../$p)) +CONFIG_TCL_FILES_REL = $(foreach p,$(CONFIG_TCL_FILES),$(if $(filter /% ./%,$p),$p,../$p)) ifdef XDC_FILES - XDC_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(XDC_FILES))) $(filter /% ./%,$(XDC_FILES)) + XDC_FILES_REL = $(foreach p,$(XDC_FILES),$(if $(filter /% ./%,$p),$p,../$p)) else XDC_FILES_REL = $(PROJECT).xdc endif diff --git a/fpga/mqnic/VCU1525/fpga_100g/common/vivado.mk b/fpga/mqnic/VCU1525/fpga_100g/common/vivado.mk index 453cc7102..b1144edd1 100644 --- a/fpga/mqnic/VCU1525/fpga_100g/common/vivado.mk +++ b/fpga/mqnic/VCU1525/fpga_100g/common/vivado.mk @@ -40,14 +40,14 @@ CONFIG ?= config.mk FPGA_TOP ?= fpga PROJECT ?= $(FPGA_TOP) -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)) +SYN_FILES_REL = $(foreach p,$(SYN_FILES),$(if $(filter /% ./%,$p),$p,../$p)) +INC_FILES_REL = $(foreach p,$(INC_FILES),$(if $(filter /% ./%,$p),$p,../$p)) +XCI_FILES_REL = $(foreach p,$(XCI_FILES),$(if $(filter /% ./%,$p),$p,../$p)) +IP_TCL_FILES_REL = $(foreach p,$(IP_TCL_FILES),$(if $(filter /% ./%,$p),$p,../$p)) +CONFIG_TCL_FILES_REL = $(foreach p,$(CONFIG_TCL_FILES),$(if $(filter /% ./%,$p),$p,../$p)) ifdef XDC_FILES - XDC_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(XDC_FILES))) $(filter /% ./%,$(XDC_FILES)) + XDC_FILES_REL = $(foreach p,$(XDC_FILES),$(if $(filter /% ./%,$p),$p,../$p)) else XDC_FILES_REL = $(PROJECT).xdc endif diff --git a/fpga/mqnic/VCU1525/fpga_25g/common/vivado.mk b/fpga/mqnic/VCU1525/fpga_25g/common/vivado.mk index 453cc7102..b1144edd1 100644 --- a/fpga/mqnic/VCU1525/fpga_25g/common/vivado.mk +++ b/fpga/mqnic/VCU1525/fpga_25g/common/vivado.mk @@ -40,14 +40,14 @@ CONFIG ?= config.mk FPGA_TOP ?= fpga PROJECT ?= $(FPGA_TOP) -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)) +SYN_FILES_REL = $(foreach p,$(SYN_FILES),$(if $(filter /% ./%,$p),$p,../$p)) +INC_FILES_REL = $(foreach p,$(INC_FILES),$(if $(filter /% ./%,$p),$p,../$p)) +XCI_FILES_REL = $(foreach p,$(XCI_FILES),$(if $(filter /% ./%,$p),$p,../$p)) +IP_TCL_FILES_REL = $(foreach p,$(IP_TCL_FILES),$(if $(filter /% ./%,$p),$p,../$p)) +CONFIG_TCL_FILES_REL = $(foreach p,$(CONFIG_TCL_FILES),$(if $(filter /% ./%,$p),$p,../$p)) ifdef XDC_FILES - XDC_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(XDC_FILES))) $(filter /% ./%,$(XDC_FILES)) + XDC_FILES_REL = $(foreach p,$(XDC_FILES),$(if $(filter /% ./%,$p),$p,../$p)) else XDC_FILES_REL = $(PROJECT).xdc endif diff --git a/fpga/mqnic/XUPP3R/fpga_100g/common/vivado.mk b/fpga/mqnic/XUPP3R/fpga_100g/common/vivado.mk index 453cc7102..b1144edd1 100644 --- a/fpga/mqnic/XUPP3R/fpga_100g/common/vivado.mk +++ b/fpga/mqnic/XUPP3R/fpga_100g/common/vivado.mk @@ -40,14 +40,14 @@ CONFIG ?= config.mk FPGA_TOP ?= fpga PROJECT ?= $(FPGA_TOP) -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)) +SYN_FILES_REL = $(foreach p,$(SYN_FILES),$(if $(filter /% ./%,$p),$p,../$p)) +INC_FILES_REL = $(foreach p,$(INC_FILES),$(if $(filter /% ./%,$p),$p,../$p)) +XCI_FILES_REL = $(foreach p,$(XCI_FILES),$(if $(filter /% ./%,$p),$p,../$p)) +IP_TCL_FILES_REL = $(foreach p,$(IP_TCL_FILES),$(if $(filter /% ./%,$p),$p,../$p)) +CONFIG_TCL_FILES_REL = $(foreach p,$(CONFIG_TCL_FILES),$(if $(filter /% ./%,$p),$p,../$p)) ifdef XDC_FILES - XDC_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(XDC_FILES))) $(filter /% ./%,$(XDC_FILES)) + XDC_FILES_REL = $(foreach p,$(XDC_FILES),$(if $(filter /% ./%,$p),$p,../$p)) else XDC_FILES_REL = $(PROJECT).xdc endif diff --git a/fpga/mqnic/XUPP3R/fpga_25g/common/vivado.mk b/fpga/mqnic/XUPP3R/fpga_25g/common/vivado.mk index 453cc7102..b1144edd1 100644 --- a/fpga/mqnic/XUPP3R/fpga_25g/common/vivado.mk +++ b/fpga/mqnic/XUPP3R/fpga_25g/common/vivado.mk @@ -40,14 +40,14 @@ CONFIG ?= config.mk FPGA_TOP ?= fpga PROJECT ?= $(FPGA_TOP) -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)) +SYN_FILES_REL = $(foreach p,$(SYN_FILES),$(if $(filter /% ./%,$p),$p,../$p)) +INC_FILES_REL = $(foreach p,$(INC_FILES),$(if $(filter /% ./%,$p),$p,../$p)) +XCI_FILES_REL = $(foreach p,$(XCI_FILES),$(if $(filter /% ./%,$p),$p,../$p)) +IP_TCL_FILES_REL = $(foreach p,$(IP_TCL_FILES),$(if $(filter /% ./%,$p),$p,../$p)) +CONFIG_TCL_FILES_REL = $(foreach p,$(CONFIG_TCL_FILES),$(if $(filter /% ./%,$p),$p,../$p)) ifdef XDC_FILES - XDC_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(XDC_FILES))) $(filter /% ./%,$(XDC_FILES)) + XDC_FILES_REL = $(foreach p,$(XDC_FILES),$(if $(filter /% ./%,$p),$p,../$p)) else XDC_FILES_REL = $(PROJECT).xdc endif diff --git a/fpga/mqnic/ZCU102/fpga/common/vivado.mk b/fpga/mqnic/ZCU102/fpga/common/vivado.mk index 06d1ca06b..a337628f3 100644 --- a/fpga/mqnic/ZCU102/fpga/common/vivado.mk +++ b/fpga/mqnic/ZCU102/fpga/common/vivado.mk @@ -40,14 +40,14 @@ CONFIG ?= config.mk FPGA_TOP ?= fpga PROJECT ?= $(FPGA_TOP) -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)) +SYN_FILES_REL = $(foreach p,$(SYN_FILES),$(if $(filter /% ./%,$p),$p,../$p)) +INC_FILES_REL = $(foreach p,$(INC_FILES),$(if $(filter /% ./%,$p),$p,../$p)) +XCI_FILES_REL = $(foreach p,$(XCI_FILES),$(if $(filter /% ./%,$p),$p,../$p)) +IP_TCL_FILES_REL = $(foreach p,$(IP_TCL_FILES),$(if $(filter /% ./%,$p),$p,../$p)) +CONFIG_TCL_FILES_REL = $(foreach p,$(CONFIG_TCL_FILES),$(if $(filter /% ./%,$p),$p,../$p)) ifdef XDC_FILES - XDC_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(XDC_FILES))) $(filter /% ./%,$(XDC_FILES)) + XDC_FILES_REL = $(foreach p,$(XDC_FILES),$(if $(filter /% ./%,$p),$p,../$p)) else XDC_FILES_REL = $(PROJECT).xdc endif diff --git a/fpga/mqnic/ZCU106/fpga_pcie/common/vivado.mk b/fpga/mqnic/ZCU106/fpga_pcie/common/vivado.mk index 453cc7102..b1144edd1 100644 --- a/fpga/mqnic/ZCU106/fpga_pcie/common/vivado.mk +++ b/fpga/mqnic/ZCU106/fpga_pcie/common/vivado.mk @@ -40,14 +40,14 @@ CONFIG ?= config.mk FPGA_TOP ?= fpga PROJECT ?= $(FPGA_TOP) -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)) +SYN_FILES_REL = $(foreach p,$(SYN_FILES),$(if $(filter /% ./%,$p),$p,../$p)) +INC_FILES_REL = $(foreach p,$(INC_FILES),$(if $(filter /% ./%,$p),$p,../$p)) +XCI_FILES_REL = $(foreach p,$(XCI_FILES),$(if $(filter /% ./%,$p),$p,../$p)) +IP_TCL_FILES_REL = $(foreach p,$(IP_TCL_FILES),$(if $(filter /% ./%,$p),$p,../$p)) +CONFIG_TCL_FILES_REL = $(foreach p,$(CONFIG_TCL_FILES),$(if $(filter /% ./%,$p),$p,../$p)) ifdef XDC_FILES - XDC_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(XDC_FILES))) $(filter /% ./%,$(XDC_FILES)) + XDC_FILES_REL = $(foreach p,$(XDC_FILES),$(if $(filter /% ./%,$p),$p,../$p)) else XDC_FILES_REL = $(PROJECT).xdc endif diff --git a/fpga/mqnic/ZCU106/fpga_zynqmp/common/vivado.mk b/fpga/mqnic/ZCU106/fpga_zynqmp/common/vivado.mk index 06d1ca06b..a337628f3 100644 --- a/fpga/mqnic/ZCU106/fpga_zynqmp/common/vivado.mk +++ b/fpga/mqnic/ZCU106/fpga_zynqmp/common/vivado.mk @@ -40,14 +40,14 @@ CONFIG ?= config.mk FPGA_TOP ?= fpga PROJECT ?= $(FPGA_TOP) -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)) +SYN_FILES_REL = $(foreach p,$(SYN_FILES),$(if $(filter /% ./%,$p),$p,../$p)) +INC_FILES_REL = $(foreach p,$(INC_FILES),$(if $(filter /% ./%,$p),$p,../$p)) +XCI_FILES_REL = $(foreach p,$(XCI_FILES),$(if $(filter /% ./%,$p),$p,../$p)) +IP_TCL_FILES_REL = $(foreach p,$(IP_TCL_FILES),$(if $(filter /% ./%,$p),$p,../$p)) +CONFIG_TCL_FILES_REL = $(foreach p,$(CONFIG_TCL_FILES),$(if $(filter /% ./%,$p),$p,../$p)) ifdef XDC_FILES - XDC_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(XDC_FILES))) $(filter /% ./%,$(XDC_FILES)) + XDC_FILES_REL = $(foreach p,$(XDC_FILES),$(if $(filter /% ./%,$p),$p,../$p)) else XDC_FILES_REL = $(PROJECT).xdc endif diff --git a/fpga/mqnic/fb2CG/fpga_100g/common/vivado.mk b/fpga/mqnic/fb2CG/fpga_100g/common/vivado.mk index 453cc7102..b1144edd1 100644 --- a/fpga/mqnic/fb2CG/fpga_100g/common/vivado.mk +++ b/fpga/mqnic/fb2CG/fpga_100g/common/vivado.mk @@ -40,14 +40,14 @@ CONFIG ?= config.mk FPGA_TOP ?= fpga PROJECT ?= $(FPGA_TOP) -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)) +SYN_FILES_REL = $(foreach p,$(SYN_FILES),$(if $(filter /% ./%,$p),$p,../$p)) +INC_FILES_REL = $(foreach p,$(INC_FILES),$(if $(filter /% ./%,$p),$p,../$p)) +XCI_FILES_REL = $(foreach p,$(XCI_FILES),$(if $(filter /% ./%,$p),$p,../$p)) +IP_TCL_FILES_REL = $(foreach p,$(IP_TCL_FILES),$(if $(filter /% ./%,$p),$p,../$p)) +CONFIG_TCL_FILES_REL = $(foreach p,$(CONFIG_TCL_FILES),$(if $(filter /% ./%,$p),$p,../$p)) ifdef XDC_FILES - XDC_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(XDC_FILES))) $(filter /% ./%,$(XDC_FILES)) + XDC_FILES_REL = $(foreach p,$(XDC_FILES),$(if $(filter /% ./%,$p),$p,../$p)) else XDC_FILES_REL = $(PROJECT).xdc endif diff --git a/fpga/mqnic/fb2CG/fpga_25g/common/vivado.mk b/fpga/mqnic/fb2CG/fpga_25g/common/vivado.mk index 453cc7102..b1144edd1 100644 --- a/fpga/mqnic/fb2CG/fpga_25g/common/vivado.mk +++ b/fpga/mqnic/fb2CG/fpga_25g/common/vivado.mk @@ -40,14 +40,14 @@ CONFIG ?= config.mk FPGA_TOP ?= fpga PROJECT ?= $(FPGA_TOP) -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)) +SYN_FILES_REL = $(foreach p,$(SYN_FILES),$(if $(filter /% ./%,$p),$p,../$p)) +INC_FILES_REL = $(foreach p,$(INC_FILES),$(if $(filter /% ./%,$p),$p,../$p)) +XCI_FILES_REL = $(foreach p,$(XCI_FILES),$(if $(filter /% ./%,$p),$p,../$p)) +IP_TCL_FILES_REL = $(foreach p,$(IP_TCL_FILES),$(if $(filter /% ./%,$p),$p,../$p)) +CONFIG_TCL_FILES_REL = $(foreach p,$(CONFIG_TCL_FILES),$(if $(filter /% ./%,$p),$p,../$p)) ifdef XDC_FILES - XDC_FILES_REL = $(patsubst %, ../%, $(filter-out /% ./%,$(XDC_FILES))) $(filter /% ./%,$(XDC_FILES)) + XDC_FILES_REL = $(foreach p,$(XDC_FILES),$(if $(filter /% ./%,$p),$p,../$p)) else XDC_FILES_REL = $(PROJECT).xdc endif