2016-11-29 14:23:11 +01:00
|
|
|
VIVADO ?= vivado
|
|
|
|
VIVADOFLAGS := \
|
|
|
|
-nojournal -mode batch \
|
|
|
|
-source script/board.tcl \
|
|
|
|
-source script/prologue.tcl
|
|
|
|
|
2016-12-08 21:14:17 +01:00
|
|
|
# Path to a program in raw binary format to be flashed into the address that the
|
|
|
|
# bootrom jumps to.
|
|
|
|
FLASHED_PROGRAM ?=
|
|
|
|
|
2016-11-29 14:23:11 +01:00
|
|
|
bit := obj/system.bit
|
|
|
|
$(bit): script/impl.tcl script/init.tcl
|
2016-11-30 23:30:05 +01:00
|
|
|
VSRC_TOP=$(VSRC_TOP) EXTRA_VSRCS="$(EXTRA_VSRCS)" $(VIVADO) $(VIVADOFLAGS) -source script/init.tcl -source script/impl.tcl
|
2016-11-29 14:23:11 +01:00
|
|
|
|
|
|
|
.PHONY: bit
|
|
|
|
bit: $(bit)
|
|
|
|
|
|
|
|
mcs := obj/system.mcs
|
|
|
|
$(mcs): $(bit)
|
2016-12-08 21:14:17 +01:00
|
|
|
$(VIVADO) $(VIVADOFLAGS) script/cfgmem.tcl -tclargs $@ $^ $(FLASHED_PROGRAM)
|
2016-11-29 14:23:11 +01:00
|
|
|
|
|
|
|
.PHONY: mcs
|
|
|
|
mcs: $(mcs)
|
|
|
|
|
|
|
|
.PHONY: clean
|
|
|
|
clean::
|
|
|
|
rm -rf -- .Xil .ip_user_files *.os obj src/generated usage_statistics_webtalk.xml usage_statistics_webtalk.html *.log
|