mirror of
https://github.com/openhwgroup/cva6.git
synced 2025-04-23 21:57:11 -04:00
🎨 Set sane default library path for verilator
This commit is contained in:
parent
01416ec4b8
commit
98d9abd494
1 changed files with 6 additions and 1 deletions
7
Makefile
7
Makefile
|
@ -27,6 +27,10 @@ test-location ?= output/test
|
|||
# set to either nothing or -log
|
||||
torture-logs := -log
|
||||
|
||||
ifndef RISCV
|
||||
$(error RISCV not set - please point your RISCV variable to your RISCV installation)
|
||||
endif
|
||||
|
||||
# Sources
|
||||
# Package files -> compile first
|
||||
ariane_pkg := include/riscv_pkg.sv \
|
||||
|
@ -226,7 +230,8 @@ verilate_command := $(verilator)
|
|||
-Wno-style \
|
||||
-Wno-lint \
|
||||
$(if $(DEBUG),--trace-structs --trace,) \
|
||||
-LDFLAGS "-lfesvr" -CFLAGS "-std=c++11 -I../tb/dpi" -Wall --cc --vpi \
|
||||
-LDFLAGS "-L$(RISCV)/lib -Wl,-rpath,$(RISCV)/lib -lfesvr" \
|
||||
-CFLAGS "-std=c++11 -I../tb/dpi" -Wall --cc --vpi \
|
||||
$(list_incdir) --top-module ariane_testharness \
|
||||
--Mdir $(ver-library) -O3 \
|
||||
--exe tb/ariane_tb.cpp tb/dpi/SimDTM.cc tb/dpi/SimJTAG.cc tb/dpi/remote_bitbang.cc
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue