From 2524f19ae0c989e9b46592e7b17eecaa64e8fd39 Mon Sep 17 00:00:00 2001 From: Adrian Costina Date: Mon, 7 Mar 2016 12:31:41 +0200 Subject: [PATCH] Updated interfaces Makefile and Makefiles for the libraries that depend on it --- library/axi_jesd_gt/Makefile | 16 ++++++++-- library/interfaces/Makefile | 55 ++++++++++++++++++++++++++--------- library/util_gtlb/Makefile | 14 +++++++-- library/util_jesd_gt/Makefile | 14 +++++++-- 4 files changed, 79 insertions(+), 20 deletions(-) diff --git a/library/axi_jesd_gt/Makefile b/library/axi_jesd_gt/Makefile index 3ac3a89de..e8fdc5069 100644 --- a/library/axi_jesd_gt/Makefile +++ b/library/axi_jesd_gt/Makefile @@ -21,6 +21,16 @@ M_DEPS += ../common/up_gt_channel.v M_DEPS += ../common/up_gt.v M_DEPS += axi_jesd_gt_constr.xdc M_DEPS += axi_jesd_gt.v +M_DEPS += ../interfaces/if_gt_qpll.xml +M_DEPS += ../interfaces/if_gt_qpll_rtl.xml +M_DEPS += ../interfaces/if_gt_pll.xml +M_DEPS += ../interfaces/if_gt_pll_rtl.xml +M_DEPS += ../interfaces/if_gt_rx.xml +M_DEPS += ../interfaces/if_gt_rx_rtl.xml +M_DEPS += ../interfaces/if_gt_rx_ksig.xml +M_DEPS += ../interfaces/if_gt_rx_ksig_rtl.xml +M_DEPS += ../interfaces/if_gt_tx.xml +M_DEPS += ../interfaces/if_gt_tx_rtl.xml M_VIVADO := vivado -mode batch -source @@ -35,8 +45,8 @@ M_FLIST += .Xil -.PHONY: all clean clean-all -all: axi_jesd_gt.xpr +.PHONY: all dep clean clean-all +all: dep axi_jesd_gt.xpr clean:clean-all @@ -50,5 +60,7 @@ axi_jesd_gt.xpr: $(M_DEPS) rm -rf $(M_FLIST) $(M_VIVADO) axi_jesd_gt_ip.tcl >> axi_jesd_gt_ip.log 2>&1 +dep: + make -C ../interfaces #################################################################################### #################################################################################### diff --git a/library/interfaces/Makefile b/library/interfaces/Makefile index cb50c9c27..996cec8d9 100644 --- a/library/interfaces/Makefile +++ b/library/interfaces/Makefile @@ -11,31 +11,58 @@ M_DEPS += ../scripts/adi_ip.tcl M_VIVADO := vivado -mode batch -source -M_FLIST := *.cache -M_FLIST += *.data -M_FLIST += *.xpr -M_FLIST += *.log -M_FLIST += component.xml +M_FLIST := *.log M_FLIST += *.jou -M_FLIST += xgui -M_FLIST += .Xil - +M_FLIST += if_gt_qpll.xml +M_FLIST += if_gt_qpll_rtl.xml +M_FLIST += if_gt_pll.xml +M_FLIST += if_gt_pll_rtl.xml +M_FLIST += if_gt_rx.xml +M_FLIST += if_gt_rx_rtl.xml +M_FLIST += if_gt_tx.xml +M_FLIST += if_gt_tx_rtl.xml +M_FLIST += if_gt_rx_ksig.xml +M_FLIST += if_gt_rx_ksig_rtl.xml .PHONY: all clean clean-all -all: interfaces.xpr - +all: if_gt_qpll.xml if_gt_qpll_rtl.xml if_gt_pll.xml if_gt_pll_rtl.xml if_gt_rx.xml if_gt_rx_rtl.xml if_gt_tx.xml if_gt_tx_rtl.xml if_gt_rx_ksig.xml if_gt_rx_ksig_rtl.xml clean:clean-all - clean-all: rm -rf $(M_FLIST) +if_gt_qpll.xml: + $(M_VIVADO) interfaces_ip.tcl >> interfaces_ip.log 2>&1 + +if_gt_qpll_rtl.xml: + $(M_VIVADO) interfaces_ip.tcl >> interfaces_ip.log 2>&1 + +if_gt_pll.xml: + $(M_VIVADO) interfaces_ip.tcl >> interfaces_ip.log 2>&1 + +if_gt_pll_rtl.xml: + $(M_VIVADO) interfaces_ip.tcl >> interfaces_ip.log 2>&1 + +if_gt_rx.xml: + $(M_VIVADO) interfaces_ip.tcl >> interfaces_ip.log 2>&1 + +if_gt_rx_rtl.xml: + $(M_VIVADO) interfaces_ip.tcl >> interfaces_ip.log 2>&1 + +if_gt_tx.xml: + $(M_VIVADO) interfaces_ip.tcl >> interfaces_ip.log 2>&1 + +if_gt_tx_rtl.xml: + $(M_VIVADO) interfaces_ip.tcl >> interfaces_ip.log 2>&1 + +if_gt_rx_ksig.xml: + $(M_VIVADO) interfaces_ip.tcl >> interfaces_ip.log 2>&1 + +if_gt_rx_ksig_rtl.xml: + $(M_VIVADO) interfaces_ip.tcl >> interfaces_ip.log 2>&1 -interfaces.xpr: $(M_DEPS) - rm -rf $(M_FLIST) - $(M_VIVADO) interfaces_ip.tcl >> interfaces_ip.log 2>&1 #################################################################################### #################################################################################### diff --git a/library/util_gtlb/Makefile b/library/util_gtlb/Makefile index 3f3542448..8dc22b792 100644 --- a/library/util_gtlb/Makefile +++ b/library/util_gtlb/Makefile @@ -11,6 +11,14 @@ M_DEPS += ../scripts/adi_ip.tcl M_DEPS += ../common/up_xfer_status.v M_DEPS += util_gtlb_constr.xdc M_DEPS += util_gtlb.v +M_DEPS += ../interfaces/if_gt_qpll.xml +M_DEPS += ../interfaces/if_gt_qpll_rtl.xml +M_DEPS += ../interfaces/if_gt_pll.xml +M_DEPS += ../interfaces/if_gt_pll_rtl.xml +M_DEPS += ../interfaces/if_gt_rx.xml +M_DEPS += ../interfaces/if_gt_rx_rtl.xml +M_DEPS += ../interfaces/if_gt_tx.xml +M_DEPS += ../interfaces/if_gt_tx_rtl.xml M_VIVADO := vivado -mode batch -source @@ -25,8 +33,8 @@ M_FLIST += .Xil -.PHONY: all clean clean-all -all: util_gtlb.xpr +.PHONY: all dep clean clean-all +all: dep util_gtlb.xpr clean:clean-all @@ -40,5 +48,7 @@ util_gtlb.xpr: $(M_DEPS) rm -rf $(M_FLIST) $(M_VIVADO) util_gtlb_ip.tcl >> util_gtlb_ip.log 2>&1 +dep: + make -C ../interfaces #################################################################################### #################################################################################### diff --git a/library/util_jesd_gt/Makefile b/library/util_jesd_gt/Makefile index 618434618..c78666c37 100644 --- a/library/util_jesd_gt/Makefile +++ b/library/util_jesd_gt/Makefile @@ -9,6 +9,14 @@ M_DEPS := util_jesd_gt_ip.tcl M_DEPS += ../scripts/adi_env.tcl M_DEPS += ../scripts/adi_ip.tcl M_DEPS += util_jesd_gt.v +M_DEPS += ../interfaces/if_gt_qpll.xml +M_DEPS += ../interfaces/if_gt_qpll_rtl.xml +M_DEPS += ../interfaces/if_gt_pll.xml +M_DEPS += ../interfaces/if_gt_pll_rtl.xml +M_DEPS += ../interfaces/if_gt_rx.xml +M_DEPS += ../interfaces/if_gt_rx_rtl.xml +M_DEPS += ../interfaces/if_gt_tx.xml +M_DEPS += ../interfaces/if_gt_tx_rtl.xml M_VIVADO := vivado -mode batch -source @@ -23,8 +31,8 @@ M_FLIST += .Xil -.PHONY: all clean clean-all -all: util_jesd_gt.xpr +.PHONY: all dep clean clean-all +all: dep util_jesd_gt.xpr clean:clean-all @@ -38,5 +46,7 @@ util_jesd_gt.xpr: $(M_DEPS) rm -rf $(M_FLIST) $(M_VIVADO) util_jesd_gt_ip.tcl >> util_jesd_gt_ip.log 2>&1 +dep: + make -C ../interfaces #################################################################################### ####################################################################################