]> git.friedersdorff.com Git - max/tmk_keyboard.git/blobdiff - tmk_core/common.mk
usb_hid: Change to USB_Host_Shield_2.0 of tmk repo
[max/tmk_keyboard.git] / tmk_core / common.mk
index 69be0e13e391906b45bbd446118cc1694ca004c2..06507ecf2d0474cd4509eecb24fccc853f6e368a 100644 (file)
@@ -21,6 +21,7 @@ SRC +=        $(COMMON_DIR)/host.c \
 ifeq (yes,$(strip $(UNIMAP_ENABLE)))
     SRC += $(COMMON_DIR)/unimap.c
     OPT_DEFS += -DUNIMAP_ENABLE
+    OPT_DEFS += -DACTIONMAP_ENABLE
 else
     ifeq (yes,$(strip $(ACTIONMAP_ENABLE)))
        SRC += $(COMMON_DIR)/actionmap.c
@@ -49,8 +50,12 @@ endif
 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)))