Skip to content

Commit

Permalink
Regenerate library Makefiles using the new shared Makefile include
Browse files Browse the repository at this point in the history
This reduces the amount of boilerplate code that is present in these
Makefiles by a lot.

It also makes it possible to update the Makefile rules in future without
having to re-generate all the Makefiles.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
  • Loading branch information
larsclausen authored and Csomi committed Apr 11, 2018
1 parent 2b108c6 commit 35a39ba
Show file tree
Hide file tree
Showing 84 changed files with 364 additions and 3,331 deletions.
47 changes: 5 additions & 42 deletions library/axi_ad5766/Makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
####################################################################################
####################################################################################
## Copyright 2011(c) Analog Devices, Inc.
## Copyright 2018(c) Analog Devices, Inc.
## Auto-generated, do not modify!
####################################################################################
####################################################################################

LIBRARY_NAME := axi_ad5766

M_DEPS += ../common/ad_rst.v
M_DEPS += ../common/up_axi.v
Expand All @@ -12,52 +12,15 @@ M_DEPS += ../common/up_dac_common.v
M_DEPS += ../common/up_xfer_cntrl.v
M_DEPS += ../common/up_xfer_status.v
M_DEPS += ../common/util_pulse_gen.v
M_DEPS += ../scripts/adi_env.tcl
M_DEPS += ../scripts/adi_ip.tcl
M_DEPS += axi_ad5766.v
M_DEPS += axi_ad5766_ip.tcl
M_DEPS += up_ad5766_sequencer.v

M_DEPS += ../util_cdc/util_cdc.xpr

M_DEPS += ../spi_engine/interfaces/spi_engine_ctrl.xml
M_DEPS += ../spi_engine/interfaces/spi_engine_ctrl_rtl.xml
M_DEPS += ../spi_engine/interfaces/spi_engine_offload_ctrl.xml
M_DEPS += ../spi_engine/interfaces/spi_engine_offload_ctrl_rtl.xml

M_VIVADO := vivado -mode batch -source

M_FLIST := *.cache
M_FLIST += *.data
M_FLIST += *.xpr
M_FLIST += *.log
M_FLIST += component.xml
M_FLIST += *.jou
M_FLIST += xgui
M_FLIST += *.ip_user_files
M_FLIST += *.srcs
M_FLIST += *.hw
M_FLIST += *.sim
M_FLIST += .Xil



.PHONY: all dep clean clean-all
all: dep axi_ad5766.xpr
LIB_DEPS += util_cdc


clean:clean-all


clean-all:
rm -rf $(M_FLIST)


axi_ad5766.xpr: $(M_DEPS)
-rm -rf $(M_FLIST)
$(M_VIVADO) axi_ad5766_ip.tcl >> axi_ad5766_ip.log 2>&1

dep:
$(MAKE) -C ../util_cdc/
####################################################################################
####################################################################################
include ../scripts/library.mk
43 changes: 4 additions & 39 deletions library/axi_ad6676/Makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
####################################################################################
####################################################################################
## Copyright 2011(c) Analog Devices, Inc.
## Copyright 2018(c) Analog Devices, Inc.
## Auto-generated, do not modify!
####################################################################################
####################################################################################

LIBRARY_NAME := axi_ad6676

M_DEPS += ../common/ad_pnmon.v
M_DEPS += ../common/ad_rst.v
Expand All @@ -14,8 +14,6 @@ M_DEPS += ../common/up_axi.v
M_DEPS += ../common/up_clock_mon.v
M_DEPS += ../common/up_xfer_cntrl.v
M_DEPS += ../common/up_xfer_status.v
M_DEPS += ../scripts/adi_env.tcl
M_DEPS += ../scripts/adi_ip.tcl
M_DEPS += ../xilinx/common/ad_rst_constr.xdc
M_DEPS += ../xilinx/common/up_clock_mon_constr.xdc
M_DEPS += ../xilinx/common/up_xfer_cntrl_constr.xdc
Expand All @@ -27,37 +25,4 @@ M_DEPS += axi_ad6676_if.v
M_DEPS += axi_ad6676_ip.tcl
M_DEPS += axi_ad6676_pnmon.v

M_VIVADO := vivado -mode batch -source

M_FLIST := *.cache
M_FLIST += *.data
M_FLIST += *.xpr
M_FLIST += *.log
M_FLIST += component.xml
M_FLIST += *.jou
M_FLIST += xgui
M_FLIST += *.ip_user_files
M_FLIST += *.srcs
M_FLIST += *.hw
M_FLIST += *.sim
M_FLIST += .Xil



.PHONY: all clean clean-all
all: axi_ad6676.xpr


clean:clean-all


clean-all:
rm -rf $(M_FLIST)


axi_ad6676.xpr: $(M_DEPS)
-rm -rf $(M_FLIST)
$(M_VIVADO) axi_ad6676_ip.tcl >> axi_ad6676_ip.log 2>&1

####################################################################################
####################################################################################
include ../scripts/library.mk
56 changes: 8 additions & 48 deletions library/axi_ad7616/Makefile
Original file line number Diff line number Diff line change
@@ -1,61 +1,21 @@
####################################################################################
####################################################################################
## Copyright 2011(c) Analog Devices, Inc.
## Copyright 2018(c) Analog Devices, Inc.
## Auto-generated, do not modify!
####################################################################################
####################################################################################

LIBRARY_NAME := axi_ad7616

M_DEPS += ../common/ad_edge_detect.v
M_DEPS += ../common/up_axi.v
M_DEPS += ../scripts/adi_env.tcl
M_DEPS += ../scripts/adi_ip.tcl
M_DEPS += axi_ad7616.v
M_DEPS += axi_ad7616_control.v
M_DEPS += axi_ad7616_ip.tcl
M_DEPS += axi_ad7616_maxis2wrfifo.v
M_DEPS += axi_ad7616_pif.v

M_DEPS += ../spi_engine/axi_spi_engine/axi_spi_engine.xpr
M_DEPS += ../spi_engine/spi_engine_execution/spi_engine_execution.xpr
M_DEPS += ../spi_engine/spi_engine_interconnect/spi_engine_interconnect.xpr
M_DEPS += ../spi_engine/spi_engine_offload/spi_engine_offload.xpr

M_VIVADO := vivado -mode batch -source

M_FLIST := *.cache
M_FLIST += *.data
M_FLIST += *.xpr
M_FLIST += *.log
M_FLIST += component.xml
M_FLIST += *.jou
M_FLIST += xgui
M_FLIST += *.ip_user_files
M_FLIST += *.srcs
M_FLIST += *.hw
M_FLIST += *.sim
M_FLIST += .Xil



.PHONY: all dep clean clean-all
all: dep axi_ad7616.xpr
LIB_DEPS += spi_engine/axi_spi_engine
LIB_DEPS += spi_engine/spi_engine_execution
LIB_DEPS += spi_engine/spi_engine_interconnect
LIB_DEPS += spi_engine/spi_engine_offload


clean:clean-all


clean-all:
rm -rf $(M_FLIST)


axi_ad7616.xpr: $(M_DEPS)
-rm -rf $(M_FLIST)
$(M_VIVADO) axi_ad7616_ip.tcl >> axi_ad7616_ip.log 2>&1

dep:
$(MAKE) -C ../spi_engine/axi_spi_engine/
$(MAKE) -C ../spi_engine/spi_engine_execution/
$(MAKE) -C ../spi_engine/spi_engine_interconnect/
$(MAKE) -C ../spi_engine/spi_engine_offload/
####################################################################################
####################################################################################
include ../scripts/library.mk
43 changes: 4 additions & 39 deletions library/axi_ad9122/Makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
####################################################################################
####################################################################################
## Copyright 2011(c) Analog Devices, Inc.
## Copyright 2018(c) Analog Devices, Inc.
## Auto-generated, do not modify!
####################################################################################
####################################################################################

LIBRARY_NAME := axi_ad9122

M_DEPS += ../common/ad_dds.v
M_DEPS += ../common/ad_dds_1.v
Expand All @@ -15,8 +15,6 @@ M_DEPS += ../common/up_dac_channel.v
M_DEPS += ../common/up_dac_common.v
M_DEPS += ../common/up_xfer_cntrl.v
M_DEPS += ../common/up_xfer_status.v
M_DEPS += ../scripts/adi_env.tcl
M_DEPS += ../scripts/adi_ip.tcl
M_DEPS += ../xilinx/common/ad_mmcm_drp.v
M_DEPS += ../xilinx/common/ad_mul.v
M_DEPS += ../xilinx/common/ad_rst_constr.xdc
Expand All @@ -32,37 +30,4 @@ M_DEPS += axi_ad9122_core.v
M_DEPS += axi_ad9122_if.v
M_DEPS += axi_ad9122_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 += *.jou
M_FLIST += xgui
M_FLIST += *.ip_user_files
M_FLIST += *.srcs
M_FLIST += *.hw
M_FLIST += *.sim
M_FLIST += .Xil



.PHONY: all clean clean-all
all: axi_ad9122.xpr


clean:clean-all


clean-all:
rm -rf $(M_FLIST)


axi_ad9122.xpr: $(M_DEPS)
-rm -rf $(M_FLIST)
$(M_VIVADO) axi_ad9122_ip.tcl >> axi_ad9122_ip.log 2>&1

####################################################################################
####################################################################################
include ../scripts/library.mk
43 changes: 4 additions & 39 deletions library/axi_ad9144/Makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
####################################################################################
####################################################################################
## Copyright 2011(c) Analog Devices, Inc.
## Copyright 2018(c) Analog Devices, Inc.
## Auto-generated, do not modify!
####################################################################################
####################################################################################

LIBRARY_NAME := axi_ad9144

M_DEPS += ../common/ad_dds.v
M_DEPS += ../common/ad_dds_1.v
Expand All @@ -15,8 +15,6 @@ M_DEPS += ../common/up_dac_channel.v
M_DEPS += ../common/up_dac_common.v
M_DEPS += ../common/up_xfer_cntrl.v
M_DEPS += ../common/up_xfer_status.v
M_DEPS += ../scripts/adi_env.tcl
M_DEPS += ../scripts/adi_ip.tcl
M_DEPS += ../xilinx/common/ad_mul.v
M_DEPS += ../xilinx/common/ad_rst_constr.xdc
M_DEPS += ../xilinx/common/up_clock_mon_constr.xdc
Expand All @@ -28,37 +26,4 @@ M_DEPS += axi_ad9144_core.v
M_DEPS += axi_ad9144_if.v
M_DEPS += axi_ad9144_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 += *.jou
M_FLIST += xgui
M_FLIST += *.ip_user_files
M_FLIST += *.srcs
M_FLIST += *.hw
M_FLIST += *.sim
M_FLIST += .Xil



.PHONY: all clean clean-all
all: axi_ad9144.xpr


clean:clean-all


clean-all:
rm -rf $(M_FLIST)


axi_ad9144.xpr: $(M_DEPS)
-rm -rf $(M_FLIST)
$(M_VIVADO) axi_ad9144_ip.tcl >> axi_ad9144_ip.log 2>&1

####################################################################################
####################################################################################
include ../scripts/library.mk
43 changes: 4 additions & 39 deletions library/axi_ad9152/Makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
####################################################################################
####################################################################################
## Copyright 2011(c) Analog Devices, Inc.
## Copyright 2018(c) Analog Devices, Inc.
## Auto-generated, do not modify!
####################################################################################
####################################################################################

LIBRARY_NAME := axi_ad9152

M_DEPS += ../common/ad_dds.v
M_DEPS += ../common/ad_dds_1.v
Expand All @@ -15,8 +15,6 @@ M_DEPS += ../common/up_dac_channel.v
M_DEPS += ../common/up_dac_common.v
M_DEPS += ../common/up_xfer_cntrl.v
M_DEPS += ../common/up_xfer_status.v
M_DEPS += ../scripts/adi_env.tcl
M_DEPS += ../scripts/adi_ip.tcl
M_DEPS += ../xilinx/common/ad_mul.v
M_DEPS += ../xilinx/common/ad_rst_constr.xdc
M_DEPS += ../xilinx/common/up_clock_mon_constr.xdc
Expand All @@ -28,37 +26,4 @@ M_DEPS += axi_ad9152_core.v
M_DEPS += axi_ad9152_if.v
M_DEPS += axi_ad9152_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 += *.jou
M_FLIST += xgui
M_FLIST += *.ip_user_files
M_FLIST += *.srcs
M_FLIST += *.hw
M_FLIST += *.sim
M_FLIST += .Xil



.PHONY: all clean clean-all
all: axi_ad9152.xpr


clean:clean-all


clean-all:
rm -rf $(M_FLIST)


axi_ad9152.xpr: $(M_DEPS)
-rm -rf $(M_FLIST)
$(M_VIVADO) axi_ad9152_ip.tcl >> axi_ad9152_ip.log 2>&1

####################################################################################
####################################################################################
include ../scripts/library.mk
Loading

0 comments on commit 35a39ba

Please sign in to comment.