From 13e115b35244d12e944475d7e5d002fd8eb726d4 Mon Sep 17 00:00:00 2001 From: tmk Date: Wed, 18 Sep 2019 15:09:02 +0900 Subject: [PATCH] core: Add NO_PRINT and NO_DEBUG build option Lines below in Makefile disable print and debug functions respectively. NO_PRINT = yes NO_DEBUG = yes --- tmk_core/common.mk | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tmk_core/common.mk b/tmk_core/common.mk index a38ff081..090bbe6e 100644 --- a/tmk_core/common.mk +++ b/tmk_core/common.mk @@ -58,6 +58,14 @@ else endif endif +ifeq (yes,$(strip $(NO_DEBUG))) + OPT_DEFS += -DNO_DEBUG +endif + +ifeq (yes,$(strip $(NO_PRINT))) + OPT_DEFS += -DNO_PRINT +endif + ifeq (yes,$(strip $(COMMAND_ENABLE))) SRC += $(COMMON_DIR)/command.c OPT_DEFS += -DCOMMAND_ENABLE -- 2.46.2