From: Richard Xia Date: Thu, 8 Dec 2016 20:14:17 +0000 (-0800) Subject: Add variable to control what program gets flashed to FPGA. X-Git-Tag: freedome300artydevkit-v1p0p2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f4375c22662f82b1b4f94e88b1aba6998b1f34ba;p=freedom-sifive.git Add variable to control what program gets flashed to FPGA. --- diff --git a/fpga/e300artydevkit/Makefile b/fpga/e300artydevkit/Makefile index a815f6f..436ed8e 100644 --- a/fpga/e300artydevkit/Makefile +++ b/fpga/e300artydevkit/Makefile @@ -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 @@ -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)