Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ XC3SPROG_EXE ?= xc3sprog
XC3SPROG_CABLE ?= none
XC3SPROG_OPTS ?=

PAPILIOPROG_EXE ?= papilio-prog
PAPILIOPROG_CABLE ?= none
PAPILIOPROG_OPTS ?= -v


###########################################################################
# Internal variables, platform-specific definitions, and macros
Expand Down Expand Up @@ -176,6 +180,11 @@ prog: $(BITFILE)
$(XC3SPROG_EXE) -c $(XC3SPROG_CABLE) $(XC3SPROG_OPTS) $(BITFILE)
endif

ifeq ($(PROGRAMMER), papilio)
prog: $(BITFILE)
$(PAPILIOPROG_EXE) $(PAPILIOPROG_OPTS) -f $(BITFILE)
endif

ifeq ($(PROGRAMMER), none)
prog:
$(error PROGRAMMER must be set to use 'make prog')
Expand Down