summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index f558ca1..c2824e5 100644
--- a/Makefile
+++ b/Makefile
@@ -3,6 +3,7 @@ MAKEFLAGS += --no-builtin-variables
.SUFFIXES:
PROGRAM ?= led
+FLASH_OPTS ?=
all: $(PROGRAM).fs
@@ -29,8 +30,9 @@ tangnano9k.cst:
%.fs: %.pnr.json
gowin_pack -d GW1N-9C -o $@ $<
+# flash: -f
flash: led.fs
- openFPGALoader -b tangnano9k -f led.fs
+ openFPGALoader -b tangnano9k $(FLASH_OPTS) led.fs
clean:
rm -rf *.json *.fs *.svg *.log