Skip to content

Commit

Permalink
WIP: Add crave submodule
Browse files Browse the repository at this point in the history
Signed-off-by: Ryszard Rozak <[email protected]>
  • Loading branch information
RRozak committed Nov 16, 2023
1 parent a9be11f commit 13f588d
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ jobs:
uses: actions/checkout@v3
with:
path: repo
submodules: recursive

- name: Cache $CCACHE_DIR
uses: actions/cache@v3
Expand Down
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "crave"]
path = crave
url = https://github.com/antmicro/crave.git
10 changes: 9 additions & 1 deletion Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ VL_INST_MAN_FILES = \
verilator_profcfunc.1 \

default: all
all: all_nomsg msg_test
all: all_nomsg msg_test crave
all_nomsg: verilator_exe $(VL_INST_MAN_FILES)

.PHONY:verilator_exe
Expand Down Expand Up @@ -537,3 +537,11 @@ preexist:

maintainer-dist: preexist tag
svnorcvs release $(DISTTAGNAME)

# CRAVE
.PHONY: crave
crave: crave/build
cmake --build crave/build
cmake --install crave/build
crave/build:
cmake -S crave -B crave/build -DmetaSMT_USE_STP=ON -DCMAKE_INSTALL_PREFIX=.
1 change: 1 addition & 0 deletions crave
Submodule crave added at a5fe57
1 change: 1 addition & 0 deletions src/Makefile_obj.in
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ ifeq ($(CFG_WITH_DEFENV),yes)
else
CPPFLAGS += -DDEFENV_VERILATOR_ROOT=\"$(VERILATOR_ROOT)\"
endif
CPPFLAGS += -DDEFENV_CRAVE_ROOT=\"$(shell realpath ../..)\"
endif

HEADERS = $(wildcard V*.h v*.h)
Expand Down
3 changes: 3 additions & 0 deletions src/config_build.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@
#ifndef DEFENV_VERILATOR_ROOT
# define DEFENV_VERILATOR_ROOT ""
#endif
#ifndef DEFENV_CRAVE_ROOT
# define DEFENV_CRAVE_ROOT ""
#endif
// clang-format on

//**********************************************************************
Expand Down

0 comments on commit 13f588d

Please sign in to comment.