Skip to content

Commit

Permalink
Updated interfaces Makefile and Makefiles for the libraries that depe…
Browse files Browse the repository at this point in the history
…nd on it
  • Loading branch information
acostina committed Mar 7, 2016
1 parent 40fb68d commit 2524f19
Show file tree
Hide file tree
Showing 4 changed files with 79 additions and 20 deletions.
16 changes: 14 additions & 2 deletions library/axi_jesd_gt/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand 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
####################################################################################
####################################################################################
55 changes: 41 additions & 14 deletions library/interfaces/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

####################################################################################
####################################################################################
14 changes: 12 additions & 2 deletions library/util_gtlb/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand 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
####################################################################################
####################################################################################
14 changes: 12 additions & 2 deletions library/util_jesd_gt/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand 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
####################################################################################
####################################################################################

0 comments on commit 2524f19

Please sign in to comment.