add debug level to FPGA makefile

This commit is contained in:
Blaise Tine 2024-08-03 00:54:58 -07:00
parent fc0392e5e3
commit fce935f1c4
2 changed files with 2 additions and 2 deletions

View file

@ -76,7 +76,7 @@ endif
# Debugging
ifdef DEBUG
ifneq ($(TARGET), fpga)
CFLAGS += $(DBG_TRACE_FLAGS)
CFLAGS += -DDEBUG_LEVEL=$(DEBUG) $(DBG_TRACE_FLAGS)
else
CFLAGS += -DNDEBUG
endif

View file

@ -116,7 +116,7 @@ ifdef DEBUG
VPP_FLAGS += -g --debug.protocol all
ifneq ($(TARGET), hw)
VPP_FLAGS += --vivado.prop fileset.sim_1.xsim.elaborate.debug_level=all
CFLAGS += $(DBG_TRACE_FLAGS)
CFLAGS += -DDEBUG_LEVEL=$(DEBUG) $(DBG_TRACE_FLAGS)
else
CFLAGS += -DNDEBUG
endif