aboutsummaryrefslogtreecommitdiff
path: root/common_features.mk
diff options
context:
space:
mode:
Diffstat (limited to 'common_features.mk')
-rw-r--r--common_features.mk21
1 files changed, 17 insertions, 4 deletions
diff --git a/common_features.mk b/common_features.mk
index 8c9d0a90c..bdde278b9 100644
--- a/common_features.mk
+++ b/common_features.mk
@@ -422,10 +422,6 @@ ifeq ($(strip $(TERMINAL_ENABLE)), yes)
422 OPT_DEFS += -DUSER_PRINT 422 OPT_DEFS += -DUSER_PRINT
423endif 423endif
424 424
425ifeq ($(strip $(USB_HID_ENABLE)), yes)
426 include $(TMK_DIR)/protocol/usb_hid.mk
427endif
428
429ifeq ($(strip $(WPM_ENABLE)), yes) 425ifeq ($(strip $(WPM_ENABLE)), yes)
430 SRC += $(QUANTUM_DIR)/wpm.c 426 SRC += $(QUANTUM_DIR)/wpm.c
431 OPT_DEFS += -DWPM_ENABLE 427 OPT_DEFS += -DWPM_ENABLE
@@ -459,6 +455,23 @@ ifeq ($(strip $(DIP_SWITCH_ENABLE)), yes)
459 SRC += $(QUANTUM_DIR)/dip_switch.c 455 SRC += $(QUANTUM_DIR)/dip_switch.c
460endif 456endif
461 457
458VALID_MAGIC_TYPES := yes full lite
459BOOTMAGIC_ENABLE ?= no
460ifneq ($(strip $(BOOTMAGIC_ENABLE)), no)
461 ifeq ($(filter $(BOOTMAGIC_ENABLE),$(VALID_MAGIC_TYPES)),)
462 $(error BOOTMAGIC_ENABLE="$(BOOTMAGIC_ENABLE)" is not a valid type of magic)
463 endif
464 ifeq ($(strip $(BOOTMAGIC_ENABLE)), lite)
465 OPT_DEFS += -DBOOTMAGIC_LITE
466 QUANTUM_SRC += $(QUANTUM_DIR)/bootmagic/bootmagic_lite.c
467 else
468 OPT_DEFS += -DBOOTMAGIC_ENABLE
469 QUANTUM_SRC += $(QUANTUM_DIR)/bootmagic/bootmagic_full.c
470 endif
471endif
472COMMON_VPATH += $(QUANTUM_DIR)/bootmagic
473QUANTUM_SRC += $(QUANTUM_DIR)/bootmagic/magic.c
474
462VALID_CUSTOM_MATRIX_TYPES:= yes lite no 475VALID_CUSTOM_MATRIX_TYPES:= yes lite no
463 476
464CUSTOM_MATRIX ?= no 477CUSTOM_MATRIX ?= no