From 889b24d72e29aa9f6d091421dbcab89b478e0b38 Mon Sep 17 00:00:00 2001 From: Peter Saunderson Date: Sun, 29 Nov 2015 14:44:21 +0000 Subject: [PATCH] Added Makefiles to make build easier Signed-off-by: Peter Saunderson --- parallella/fpga/Makefile | 10 ++++++++ parallella/fpga/headless/Makefile | 30 ++++++++++++++++++++++++ parallella/fpga/parallella_base/Makefile | 21 +++++++++++++++++ 3 files changed, 61 insertions(+) create mode 100644 parallella/fpga/Makefile create mode 100644 parallella/fpga/headless/Makefile create mode 100644 parallella/fpga/parallella_base/Makefile diff --git a/parallella/fpga/Makefile b/parallella/fpga/Makefile new file mode 100644 index 0000000..421ddd5 --- /dev/null +++ b/parallella/fpga/Makefile @@ -0,0 +1,10 @@ + +.PHONY: all clean + +all: + make -C parallella_base/ all + make -C headless/ all + +clean: + make -C headless/ clean + make -C parallella_base/ clean diff --git a/parallella/fpga/headless/Makefile b/parallella/fpga/headless/Makefile new file mode 100644 index 0000000..4aadebd --- /dev/null +++ b/parallella/fpga/headless/Makefile @@ -0,0 +1,30 @@ + +M_DEPS := run.tcl +M_DEPS += ../parallella_base/parallella_base.xpr +M_DEPS += ../parallella_base/run.tcl + +M_VIVADO := vivado -mode batch -source + +M_FLIST := *.cache +M_FLIST += *.data +M_FLIST += *.xpr +M_FLIST += *.log +M_FLIST += *.jou +M_FLIST += xgui +M_FLIST += *.runs +M_FLIST += *.srcs +M_FLIST += *.sdk +M_FLIST += .Xil +M_FLIST += parallella.bit.bin +M_FLIST += system_wrapper.bit.bin + +.PHONY: all clean + +all: $(M_DEPS) + rm -f system_wrapper.bit.bin bit2bin.bin + $(M_VIVADO) run.tcl + bootgen -image bit2bin.bif -split bin + cp -f system_wrapper.bit.bin parallella.bit.bin + +clean: + rm -rf $(M_FLIST) diff --git a/parallella/fpga/parallella_base/Makefile b/parallella/fpga/parallella_base/Makefile new file mode 100644 index 0000000..3a5f15f --- /dev/null +++ b/parallella/fpga/parallella_base/Makefile @@ -0,0 +1,21 @@ + +M_DEPS := run.tcl + +M_VIVADO := vivado -mode batch -source + +M_FLIST := *.cache +M_FLIST += *.data +M_FLIST += *.xpr +M_FLIST += *.log +M_FLIST += *.jou +M_FLIST += xgui +M_FLIST += *.runs +M_FLIST += *.srcs +M_FLIST += *.sdk +M_FLIST += .Xil + +all: $(M_DEPS) + $(M_VIVADO) run.tcl + +clean: + rm -rf $(M_FLIST)