Skip to content
This repository has been archived by the owner on Mar 2, 2021. It is now read-only.

Commit

Permalink
Add variable to control what program gets flashed to FPGA.
Browse files Browse the repository at this point in the history
  • Loading branch information
richardxia committed Dec 8, 2016
1 parent e95ae8a commit f4375c2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion fpga/e300artydevkit/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ VIVADOFLAGS := \
-source script/board.tcl \
-source script/prologue.tcl

# Path to a program in raw binary format to be flashed into the address that the
# bootrom jumps to.
FLASHED_PROGRAM ?=

bit := obj/system.bit
$(bit): script/impl.tcl script/init.tcl
VSRC_TOP=$(VSRC_TOP) EXTRA_VSRCS="$(EXTRA_VSRCS)" $(VIVADO) $(VIVADOFLAGS) -source script/init.tcl -source script/impl.tcl
Expand All @@ -13,7 +17,7 @@ bit: $(bit)

mcs := obj/system.mcs
$(mcs): $(bit)
$(VIVADO) $(VIVADOFLAGS) script/cfgmem.tcl -tclargs $@ $^
$(VIVADO) $(VIVADOFLAGS) script/cfgmem.tcl -tclargs $@ $^ $(FLASHED_PROGRAM)

.PHONY: mcs
mcs: $(mcs)
Expand Down

0 comments on commit f4375c2

Please sign in to comment.