Hook up hello_multicore to automatically build and use the multicore testbench variant

This commit is contained in:
Luke Wren 2024-08-07 19:16:03 -07:00
parent 422c0d32c6
commit dc21745d16
2 changed files with 5 additions and 1 deletions

View File

@ -6,6 +6,7 @@ ifndef APP
$(error Must define application name as APP)
endif
DOTF ?= tb.f
CCFLAGS ?=
LDSCRIPT ?= ../common/memmap.ld
CROSS_PREFIX ?= riscv32-unknown-elf-
@ -34,7 +35,7 @@ view: run
bin: $(TMP_PREFIX)$(APP).bin
tb:
$(MAKE) -C $(TBDIR)
$(MAKE) -C $(TBDIR) DOTF=$(DOTF)
clean:
rm -rf $(TMP_PREFIX)

View File

@ -2,4 +2,7 @@ SRCS := ../common/init.S main.c
APP := hello_multicore
CCFLAGS = -march=rv32imac_zicsr_zifencei_zba_zbb_zbkb_zbs -Os
DOTF := tb_multicore.f
TBEXEC := ../tb_cxxrtl/tb_multicore
include ../common/src_only_app.mk