minor update

This commit is contained in:
Blaise Tine 2021-10-11 17:11:36 -04:00
parent e324c9a90a
commit 549629440d
4 changed files with 9 additions and 4 deletions

View file

@ -20,6 +20,7 @@ L3=0
DEBUG=0
SCOPE=0
HAS_ARGS=0
DEBUG_LEVEL=1
for i in "$@"
do
@ -100,6 +101,7 @@ case $DRIVER in
;;
simx)
DRIVER_PATH=$VORTEX_HOME/driver/simx
DEBUG_LEVEL=3
;;
*)
echo "invalid driver: $DRIVER"
@ -130,9 +132,9 @@ if [ $DEBUG -eq 1 ]
then
if [ $SCOPE -eq 1 ]
then
DEBUG=1 SCOPE=1 CONFIGS="$CONFIGS" make -s -C $DRIVER_PATH
DEBUG=$DEBUG_LEVEL SCOPE=1 CONFIGS="$CONFIGS" make -s -C $DRIVER_PATH
else
DEBUG=1 CONFIGS="$CONFIGS" make -s -C $DRIVER_PATH
DEBUG=$DEBUG_LEVEL CONFIGS="$CONFIGS" make -s -C $DRIVER_PATH
fi
if [ $HAS_ARGS -eq 1 ]

View file

@ -3,6 +3,9 @@
# exit when any command fails
set -e
# ensure build
make -s
coverage()
{
echo "begin coverage tests..."

View file

@ -16,7 +16,7 @@ CXXFLAGS += $(CONFIGS)
# Dump perf stats
CXXFLAGS += -DDUMP_PERF_STATS
LDFLAGS += -shared
LDFLAGS += -shared -pthread
SRCS = vortex.cpp ../common/vx_utils.cpp

View file

@ -20,7 +20,7 @@ CXXFLAGS += $(CONFIGS)
# Dump perf stats
CXXFLAGS += -DDUMP_PERF_STATS
LDFLAGS += -shared
LDFLAGS += -shared -pthread
AFU_JSON_INFO = vortex_afu.h