Testing is a separate step.
Also fix Issue #64 by adding src_dir to the path to the targets file.
isa_src_dir := $(abs_top_src_dir)/isa
debug_src_dir := $(abs_top_src_dir)/debug
-all: benchmarks isa debug-check
+all: benchmarks isa
install: all
install -d $(instbasedir)/share/riscv-tests/isa
$(MAKE) -C isa -f $(isa_src_dir)/Makefile src_dir=$(isa_src_dir) XLEN=$(XLEN)
debug-check:
- mkdir -p debug/programs
- cp -ar $(debug_src_dir)/programs/* debug/programs/
+ mkdir -p debug
$(MAKE) -C debug -f $(debug_src_dir)/Makefile src_dir=$(debug_src_dir) XLEN=$(XLEN)
clean:
%.log:
$(GDBSERVER_PY) \
--isolate \
- targets/RISC-V/$(subst .log,.py,$@) \
+ $(src_dir)/targets/RISC-V/$(subst .log,.py,$@) \
--sim_cmd $(RISCV)/bin/$(RISCV_SIM) \
--server_cmd $(RISCV)/bin/openocd \
| tee $@ 2>&1 || (sed s/^/$@:\ / $@ && false)