Skip to content
Snippets Groups Projects
Commit ef185c7a authored by Tejas Harith's avatar Tejas Harith
Browse files

allow for DEBUG=0

parent 876d38ac
No related merge requests found
......@@ -11,7 +11,7 @@ CPPFLAGS= -I/simbricks/lib $(EXTRA_CPPFLAGS)
CFLAGS= -Wall -Wextra -Wno-unused-parameter -O3 $(EXTRA_CFLAGS)
CXXFLAGS= -Wall -Wextra -O3 $(EXTRA_CXXFLAGS)
LDFLAGS= -L/simbricks/lib $(EXTRA_LDFLAGS)
DEBUG= 0
DEBUG=0
## Clean ######################################################
......@@ -47,11 +47,19 @@ hw/vortex_env/vortex-swish/build/runtime/simbricks/libvortex.so: hw/vortex_env/v
## Sim Rules ##################################################
hw/vortex_env/vortex-swish/build/sim/simbricks/vx-sbsim: hw/vortex_env/vortex-swish/sim/simbricks/*
sudo chroot ./hw/vortex_env/ /bin/bash -c "\
cd vortex-swish/build \
&& source ./ci/toolchain_env.sh \
&& export LD_LIBRARY_PATH=/root/tools/llvm-vortex/lib/ \
&& make -C sim/simbricks DEBUG=$(DEBUG)"
@if [ "$(DEBUG)" != "0" ]; then \
sudo chroot ./hw/vortex_env/ /bin/bash -c "\
cd vortex-swish/build \
&& source ./ci/toolchain_env.sh \
&& export LD_LIBRARY_PATH=/root/tools/llvm-vortex/lib/ \
&& make -C sim/simbricks DEBUG=$(DEBUG)"; \
else \
sudo chroot ./hw/vortex_env/ /bin/bash -c "\
cd vortex-swish/build \
&& source ./ci/toolchain_env.sh \
&& export LD_LIBRARY_PATH=/root/tools/llvm-vortex/lib/ \
&& make -C sim/simbricks"; \
fi
## Test Template ##############################################
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment