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

Commit f4375c2

Browse files
committed
Add variable to control what program gets flashed to FPGA.
1 parent e95ae8a commit f4375c2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

fpga/e300artydevkit/Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ VIVADOFLAGS := \
44
-source script/board.tcl \
55
-source script/prologue.tcl
66

7+
# Path to a program in raw binary format to be flashed into the address that the
8+
# bootrom jumps to.
9+
FLASHED_PROGRAM ?=
10+
711
bit := obj/system.bit
812
$(bit): script/impl.tcl script/init.tcl
913
VSRC_TOP=$(VSRC_TOP) EXTRA_VSRCS="$(EXTRA_VSRCS)" $(VIVADO) $(VIVADOFLAGS) -source script/init.tcl -source script/impl.tcl
@@ -13,7 +17,7 @@ bit: $(bit)
1317

1418
mcs := obj/system.mcs
1519
$(mcs): $(bit)
16-
$(VIVADO) $(VIVADOFLAGS) script/cfgmem.tcl -tclargs $@ $^
20+
$(VIVADO) $(VIVADOFLAGS) script/cfgmem.tcl -tclargs $@ $^ $(FLASHED_PROGRAM)
1721

1822
.PHONY: mcs
1923
mcs: $(mcs)

0 commit comments

Comments
 (0)