Skip to content

Commit

Permalink
Move riscv-arch-tests to third-party
Browse files Browse the repository at this point in the history
  • Loading branch information
perna-cartesi committed Nov 25, 2022
1 parent 0f489d9 commit 47172ee
Show file tree
Hide file tree
Showing 15 changed files with 12 additions and 12 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,11 @@ jobs:

- name: Build uarch-based interpreter
run: |
eval $(make env)
make -C uarch
make uarch
# temporarily testing microarchitecture interpreter here
- name: Test microarchitecture interpreter
run: |
eval $(make env)
make -C riscv-arch-tests
make riscv-arch-tests
- name: Upload emulator
uses: actions/upload-artifact@master
Expand Down
13 changes: 8 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ SRCDIR := $(abspath src)
BUILDBASE := $(abspath build)
BUILDDIR = $(BUILDBASE)/$(UNAME)_$(shell uname -m)
DOWNLOADDIR := $(DEPDIR)/downloads
SUBCLEAN := $(addsuffix .clean,$(SRCDIR))
SUBCLEAN := $(addsuffix .clean,$(SRCDIR) uarch third-party/riscv-arch-tests)
DEPDIRS := $(addprefix $(DEPDIR)/,cryptopp-CRYPTOPP_7_0_0 grpc)
DEPCLEAN := $(addsuffix .clean,$(DEPDIRS))
COREPROTO := lib/grpc-interfaces/core.proto
Expand Down Expand Up @@ -121,6 +121,8 @@ help:
@echo 'Generic targets:'
@echo '* all - build the src/ code. To build from a clean clone, run: make submodules downloads dep all'
@echo ' doc - build the doxygen documentation (requires doxygen to be installed)'
@echo ' uarch - build microarchitecture'
@echo ' riscv-arch-tests - build and run microarchitecture rv64i instruction tests'

$(DOWNLOADDIR):
@mkdir -p $(DOWNLOADDIR)
Expand All @@ -142,14 +144,15 @@ submodules:
$(COREPROTO):
$(info gprc-interfaces submodule not initialized!)
@exit 1

grpc: | $(COREPROTO)
hash luacartesi grpc test lint coverage-report check-format format:
@eval $$($(MAKE) -s --no-print-directory env); $(MAKE) -C $(SRCDIR) $@

riscv-arch-tests:
@eval $$($(MAKE) -s --no-print-directory env); $(MAKE) -C third-party/riscv-arch-tests
source-default:
@eval $$($(MAKE) -s --no-print-directory env); $(MAKE) -C $(SRCDIR)

uarch:
@eval $$($(MAKE) -s --no-print-directory env); $(MAKE) -C uarch
$(DEPDIR)/cryptopp-CRYPTOPP_7_0_0 $(BUILDDIR)/lib/libcryptopp.$(LIB_EXTENSION): | $(BUILDDIR) $(DOWNLOADDIR)
if [ ! -d $(DEPDIR)/cryptopp-CRYPTOPP_7_0_0 ]; then tar -xzf $(DOWNLOADDIR)/CRYPTOPP_7_0_0.tar.gz -C $(DEPDIR); fi
$(MAKE) -C $(DEPDIR)/cryptopp-CRYPTOPP_7_0_0 shared
Expand Down Expand Up @@ -226,5 +229,5 @@ install: install-dep install-emulator install-strip $(INSTALL_PLAT)

.SECONDARY: $(DOWNLOADDIR) $(DEPDIRS) $(COREPROTO)

.PHONY: help all submodules doc clean distclean downloads src test luacartesi grpc hash\
.PHONY: help all submodules doc clean distclean downloads src test luacartesi grpc hash uarch \
$(SUBDIRS) $(SUBCLEAN) $(DEPCLEAN)
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
MACHINE_EMULATOR_DEFINES_DIR ?= $(abspath ../lib/machine-emulator-defines)
EMULATOR_ROM ?= $(abspath ../../rom.bin)
MACHINE_EMULATOR_DEFINES_DIR ?= $(abspath ../../lib/machine-emulator-defines)
EMULATOR_ROM ?= $(abspath ../../../rom.bin)

RISCV_ARCH_TEST_PROJ = riscv-arch-test
RISCV_ARCHTEST_BASE_URL = https://github.com/riscv-non-isa/$(RISCV_ARCH_TEST_PROJ)/archive
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 47172ee

Please sign in to comment.