🎨 Set sane default library path for verilator

This commit is contained in:
Florian Zaruba 2018-11-25 16:45:22 +01:00
parent 01416ec4b8
commit 98d9abd494
No known key found for this signature in database
GPG key ID: E742FFE8EC38A792

View file

@ -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