From 5eba340fbbbd86d31d2e6cec398bc899f7324a61 Mon Sep 17 00:00:00 2001 From: Simon Southwell Date: Mon, 3 Dec 2018 06:52:32 +0000 Subject: [PATCH] Added hooks to VProc makefile for specifying external libraries and paths, and also includes and paths to hook in ESW-HAL --- verification/vproc/makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/verification/vproc/makefile b/verification/vproc/makefile index 54addd0..aa2d923 100644 --- a/verification/vproc/makefile +++ b/verification/vproc/makefile @@ -18,6 +18,11 @@ EXTINCLDIR = ${USRCDIR}/hal MEMMODELDIR = ../mem_model/src MODELSIMDIR = c:\altera_17_1\ver\modelsim_ase +# Hooks to reference external HAL library and headers +# filled with dummy values. Override from calling makefile. +HALCOPTS = "" +HALLDOPTS = "" + # ----------------------------------------------------------------- # Destination folder for object code @@ -36,7 +41,7 @@ VPROC_C = VSched.c \ # Memory model C code MEM_C = mem.c mem_model.c -# Test user code default (override on command line if additional files +# Test user code default (override on command line if additional files) USER_C = VUserMain0.cpp USER_INCL = @@ -56,6 +61,7 @@ CFLAGS = -fPIC \ -I${EXTINCLDIR} \ -I${MODELSIMDIR}/include \ -I${MEMMODELDIR} \ + ${HALCOPTS} \ -DVP_MAX_NODES=${MAX_NUM_VPROC} \ -DMODELSIM \ -DHDL_SIM \ @@ -102,6 +108,7 @@ ${VPROC_PLI}: ${VLIB} ${VOBJDIR}/veriuser.o -lmtipli \ -L${TESTDIR} -lvproc \ -Wl,-no-whole-archive \ + ${HALLDOPTS} \ -o $@ # Let modelsim decide what's changed in the verilog