diff options
| author | Julian Blake Kongslie | 2021-04-15 16:38:39 -0700 |
|---|---|---|
| committer | Julian Blake Kongslie | 2021-04-15 16:38:39 -0700 |
| commit | 3154b349c8b77d5e76eeb978fb9d6f78d03ceb88 (patch) | |
| tree | 88c78afab61d06dfde40527f23304447aa6978e5 | |
| parent | Properly quote quartus_pgm commandline. (diff) | |
| download | noncpu-3154b349c8b77d5e76eeb978fb9d6f78d03ceb88.tar.xz | |
More makefile corrections/simplifications for quartus on Linux.
| -rw-r--r-- | Makefile | 8 |
1 files changed, 4 insertions, 4 deletions
| @@ -1,6 +1,7 @@ | |||
| 1 | SOURCES := $(shell find hdl sim -name \*.sv -o -name \*.cpp) | 1 | SOURCES := $(shell find hdl sim -name \*.sv -o -name \*.cpp) |
| 2 | HEADERS := $(shell find hdl -name \*.svh) | 2 | HEADERS := $(shell find hdl -name \*.svh) |
| 3 | MEMORIES := $(shell find mem -name \*.hex) | 3 | MEMORIES := $(shell find mem -name \*.hex) |
| 4 | QUARTUS := $(shell find altera tcl -name \*.cdf -o -name \*.sdc -o -name \*.tcl) | ||
| 4 | 5 | ||
| 5 | OPTS ?= | 6 | OPTS ?= |
| 6 | 7 | ||
| @@ -15,11 +16,10 @@ build/Vtop: $(SOURCES) $(HEADERS) | |||
| 15 | @ln -t build -f verilator/Vtop | 16 | @ln -t build -f verilator/Vtop |
| 16 | @rm -rf verilator | 17 | @rm -rf verilator |
| 17 | 18 | ||
| 18 | noncpu.qpf: $(SOURCES) $(HEADERS) $(MEMORIES) | 19 | noncpu.sof: $(SOURCES) $(HEADERS) $(MEMORIES) $(QUARTUS) |
| 20 | [ ! -e noncpu.qpf ] || quartus_sh -t tcl/clean.tcl | ||
| 19 | quartus_sh -t tcl/init.tcl | 21 | quartus_sh -t tcl/init.tcl |
| 20 | 22 | quartus_sh --flow compile noncpu.qpf | |
| 21 | noncpu.sof: noncpu.qpf $(SOURCES) $(HEADERS) $(MEMORIES) | ||
| 22 | quartus_sh --flow compile $< | ||
| 23 | 23 | ||
| 24 | fpga: noncpu.sof | 24 | fpga: noncpu.sof |
| 25 | quartus_pgm -c 1 -m JTAG -o "P;$<@1" | 25 | quartus_pgm -c 1 -m JTAG -o "P;$<@1" |
