aboutsummaryrefslogtreecommitdiff
path: root/Makefile.util
diff options
context:
space:
mode:
authorWojciech Kosior <kwojtus@protonmail.com>2020-12-29 19:56:04 +0100
committerWojciech Kosior <kwojtus@protonmail.com>2020-12-29 19:56:04 +0100
commit68c80359ba0983bc21a18c0270025be9b441c0bb (patch)
treea06a04eb8756f96d05c55768bd356917847cdc95 /Makefile.util
parent5b6a3f3b216939a11ed1978d7da4dd6bbe4edc2a (diff)
downloadAGH-engineering-thesis-68c80359ba0983bc21a18c0270025be9b441c0bb.tar.gz
AGH-engineering-thesis-68c80359ba0983bc21a18c0270025be9b441c0bb.zip
add the ability to include additional data at the end of bitstream image and prepare an example, that reads thic data through SPI and displays it
Diffstat (limited to 'Makefile.util')
-rw-r--r--Makefile.util5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile.util b/Makefile.util
index 88939b1..85f14a9 100644
--- a/Makefile.util
+++ b/Makefile.util
@@ -21,8 +21,11 @@ design.asc pnr.log: $(PCF) design.json
$(PNR) --hx8k --asc design.asc --pcf $< --json design.json \
--package ct256 > pnr.log 2>&1
-design.bin : design.asc
+design.bin : design.asc $(FLASH_DATA)
$(ICEPACK) $< $@
+ifdef FLASH_DATA
+ cat $(FLASH_DATA) >> $@
+endif
prog : design.bin
sudo iceprogduino $<