ifeq (yes,$(strip $(CONSOLE_ENABLE)))
OPT_DEFS += -DCONSOLE_ENABLE
else
- OPT_DEFS += -DNO_PRINT
- OPT_DEFS += -DNO_DEBUG
+ # Remove print functions when console is disabled and
+ # no other print method like UART is available
+ ifneq (yes, $(strip $(DEBUG_PRINT_AVAILABLE)))
+ OPT_DEFS += -DNO_PRINT
+ OPT_DEFS += -DNO_DEBUG
+ endif
endif
ifeq (yes,$(strip $(COMMAND_ENABLE)))