2015-07-05 19:43:01 +02:00
|
|
|
have_vivado := $(shell which vivado 1>/dev/null 2>/dev/null && echo yes)
|
2015-07-05 23:30:55 +02:00
|
|
|
top_srcdir := @top_srcdir@
|
|
|
|
top_builddir := @top_builddir@
|
2015-07-05 19:43:01 +02:00
|
|
|
|
|
|
|
export
|
|
|
|
|
|
|
|
.PHONY: builddeps all parallella-16-nohdmi clean
|
|
|
|
|
|
|
|
help:
|
|
|
|
@echo "TARGETS:"
|
|
|
|
@echo "all -- everything (TODO)"
|
|
|
|
@echo "parallella-z7020 -- Parallella Embedded (no HDMI)"
|
|
|
|
|
|
|
|
builddeps:
|
|
|
|
@if [ "x$(have_vivado)" != "xyes" ]; then echo vivado not in path; exit 1; fi
|
|
|
|
|
|
|
|
all: builddeps parallella-z7020
|
|
|
|
|
2015-07-05 23:30:55 +02:00
|
|
|
# TODO
|
2015-07-05 19:43:01 +02:00
|
|
|
parallella-z7020: builddeps
|
2015-07-05 23:30:55 +02:00
|
|
|
vivado -mode batch -source $(top_srcdir)/projects/parallella-z7020/system_project.tcl
|
2015-07-05 19:43:01 +02:00
|
|
|
|
2015-07-05 23:30:55 +02:00
|
|
|
# Temporary
|
|
|
|
package_axi_elink: builddeps
|
2015-11-04 20:14:57 +00:00
|
|
|
vivado -mode batch -source $(top_srcdir)/elink/projects/xilinx/package_axi_elink.tcl
|
2015-07-05 19:43:01 +02:00
|
|
|
|
2015-07-05 23:30:55 +02:00
|
|
|
# Temporary
|
|
|
|
elink: builddeps
|
2015-11-04 20:14:57 +00:00
|
|
|
vivado -mode batch -source $(top_srcdir)/elink/projects/xilinx/run.tcl
|
2015-07-05 23:30:55 +02:00
|
|
|
|
2015-07-05 19:43:01 +02:00
|
|
|
clean:
|
2015-07-05 23:30:55 +02:00
|
|
|
find . \( -name "vivado*.log" -or -name "vivado*.jou" \) -delete
|
|
|
|
|