projects
/
freedom-sifive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
e95ae8a
)
Add variable to control what program gets flashed to FPGA.
freedome300artydevkit-v1p0p2
author
Richard Xia
<rxia@sifive.com>
Thu, 8 Dec 2016 20:14:17 +0000
(12:14 -0800)
committer
Richard Xia
<rxia@sifive.com>
Thu, 8 Dec 2016 20:14:17 +0000
(12:14 -0800)
fpga/e300artydevkit/Makefile
patch
|
blob
|
history
diff --git
a/fpga/e300artydevkit/Makefile
b/fpga/e300artydevkit/Makefile
index a815f6f013e5bcb077f3b6ee3c60928a16f76da1..436ed8e9839faecf28369169027fcb52e6e59abc 100644
(file)
--- a/
fpga/e300artydevkit/Makefile
+++ b/
fpga/e300artydevkit/Makefile
@@
-4,6
+4,10
@@
VIVADOFLAGS := \
-source script/board.tcl \
-source script/prologue.tcl
-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
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)
mcs := obj/system.mcs
$(mcs): $(bit)
- $(VIVADO) $(VIVADOFLAGS) script/cfgmem.tcl -tclargs $@ $^
+ $(VIVADO) $(VIVADOFLAGS) script/cfgmem.tcl -tclargs $@ $^
$(FLASHED_PROGRAM)
.PHONY: mcs
mcs: $(mcs)
.PHONY: mcs
mcs: $(mcs)