From 15cae2289b6ae19ce0693ff1226846bc8f04a460 Mon Sep 17 00:00:00 2001 From: Jan Ciger Date: Mon, 25 Mar 2019 00:58:24 +0100 Subject: [PATCH] Added support for Papilio uploader --- Makefile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Makefile b/Makefile index 116886c..21e2ed6 100644 --- a/Makefile +++ b/Makefile @@ -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 @@ -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')