From 67103bc7dac1aa510ce9a2c63d9cd58cb527606a Mon Sep 17 00:00:00 2001 From: Julian Blake Kongslie Date: Sun, 29 May 2022 16:32:08 -0700 Subject: Add makefile target for uploading "raw UART" images --- Makefile | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index fa53ee8..5f51296 100644 --- a/Makefile +++ b/Makefile @@ -7,7 +7,7 @@ fpga: pdp8.sof quartus_pgm -c 1 -m JTAG -o "P;$<@1" .PHONY: fpga -download-%: mem/% +download-%.bin: mem/%.bin p8bin2uart 1 $< | tool/download.tcl 0 1 p8bin2uart 1 $< | tool/download.tcl 1 1 p8bin2uart 1 $< | tool/download.tcl 2 1 @@ -25,6 +25,24 @@ download-%: mem/% p8bin2uart 1 $< | tool/download.tcl 14 1 p8bin2uart 1 $< | tool/download.tcl 15 1 +download-%.uart: mem/%.uart + tool/download.tcl 0 1 < $< + tool/download.tcl 1 1 < $< + tool/download.tcl 2 1 < $< + tool/download.tcl 3 1 < $< + tool/download.tcl 4 1 < $< + tool/download.tcl 5 1 < $< + tool/download.tcl 6 1 < $< + tool/download.tcl 7 1 < $< + tool/download.tcl 8 1 < $< + tool/download.tcl 9 1 < $< + tool/download.tcl 10 1 < $< + tool/download.tcl 11 1 < $< + tool/download.tcl 12 1 < $< + tool/download.tcl 13 1 < $< + tool/download.tcl 14 1 < $< + tool/download.tcl 15 1 < $< + term-mem: nios2-terminal --instance 0 .PHONY: term-mem -- cgit v1.2.3