cvw/tests/riscof/Makefile

19 lines
559 B
Makefile
Raw Normal View History

2022-06-17 01:05:06 +00:00
arch_dir = ../../addins/riscv-arch-test
work_dir = "./riscof_work"
current_dir = $(shell pwd)
2022-06-17 22:07:16 +00:00
XLEN ?= 64
2022-06-17 01:05:06 +00:00
2022-06-17 22:07:16 +00:00
all: build
2022-06-17 01:05:06 +00:00
2022-06-17 22:07:16 +00:00
build:
2022-06-17 01:05:06 +00:00
mkdir -p $(work_dir)
mkdir -p work
2022-06-17 22:07:16 +00:00
sed 's,{0},$(current_dir),g;s,{1},$(XLEN)$(if $(findstring 64,$(XLEN)),gc,imc),g' config.ini > config$(XLEN).ini
riscof run --work-dir=$(work_dir) --config=config$(XLEN).ini --suite=$(arch_dir)/riscv-test-suite/ --env=$(arch_dir)/riscv-test-suite/env --no-browser --no-dut-run
mv $(work_dir)/rv$(XLEN)i_m work/
2022-06-17 01:05:06 +00:00
clean:
rm -f config64.ini
rm -f config32.ini
rm -rf $(work_dir)
rm -rf work