]> git.friedersdorff.com Git - max/tmk_keyboard.git/commitdiff
core: Add NO_PRINT and NO_DEBUG build option
authortmk <hasu@tmk-kbd.com>
Wed, 18 Sep 2019 06:09:02 +0000 (15:09 +0900)
committertmk <hasu@tmk-kbd.com>
Wed, 18 Sep 2019 06:09:02 +0000 (15:09 +0900)
Lines below in Makefile disable print and debug functions respectively.
    NO_PRINT = yes
    NO_DEBUG = yes

tmk_core/common.mk

index a38ff081ddd6937a3b94a7f27a5d16d0d0c4164e..090bbe6e373ffac5193b1b575b7c0488304acdb2 100644 (file)
@@ -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