aboutsummaryrefslogtreecommitdiff
path: root/common_features.mk
diff options
context:
space:
mode:
Diffstat (limited to 'common_features.mk')
-rw-r--r--common_features.mk26
1 files changed, 19 insertions, 7 deletions
diff --git a/common_features.mk b/common_features.mk
index 8c9d0a90c..fdc481fd2 100644
--- a/common_features.mk
+++ b/common_features.mk
@@ -223,11 +223,10 @@ VALID_LED_MATRIX_TYPES := IS31FL3731 custom
223 223
224ifeq ($(strip $(LED_MATRIX_ENABLE)), yes) 224ifeq ($(strip $(LED_MATRIX_ENABLE)), yes)
225 ifeq ($(filter $(LED_MATRIX_DRIVER),$(VALID_LED_MATRIX_TYPES)),) 225 ifeq ($(filter $(LED_MATRIX_DRIVER),$(VALID_LED_MATRIX_TYPES)),)
226 $(error LED_MATRIX_DRIVER="$(LED_MATRIX_DRIVER)" is not a valid matrix type) 226 $(error "$(LED_MATRIX_DRIVER)" is not a valid matrix type)
227 else 227 else
228 BACKLIGHT_ENABLE = yes
229 BACKLIGHT_DRIVER = custom
230 OPT_DEFS += -DLED_MATRIX_ENABLE 228 OPT_DEFS += -DLED_MATRIX_ENABLE
229 SRC += $(QUANTUM_DIR)/process_keycode/process_backlight.c
231 SRC += $(QUANTUM_DIR)/led_matrix.c 230 SRC += $(QUANTUM_DIR)/led_matrix.c
232 SRC += $(QUANTUM_DIR)/led_matrix_drivers.c 231 SRC += $(QUANTUM_DIR)/led_matrix_drivers.c
233 endif 232 endif
@@ -422,10 +421,6 @@ ifeq ($(strip $(TERMINAL_ENABLE)), yes)
422 OPT_DEFS += -DUSER_PRINT 421 OPT_DEFS += -DUSER_PRINT
423endif 422endif
424 423
425ifeq ($(strip $(USB_HID_ENABLE)), yes)
426 include $(TMK_DIR)/protocol/usb_hid.mk
427endif
428
429ifeq ($(strip $(WPM_ENABLE)), yes) 424ifeq ($(strip $(WPM_ENABLE)), yes)
430 SRC += $(QUANTUM_DIR)/wpm.c 425 SRC += $(QUANTUM_DIR)/wpm.c
431 OPT_DEFS += -DWPM_ENABLE 426 OPT_DEFS += -DWPM_ENABLE
@@ -459,6 +454,23 @@ ifeq ($(strip $(DIP_SWITCH_ENABLE)), yes)
459 SRC += $(QUANTUM_DIR)/dip_switch.c 454 SRC += $(QUANTUM_DIR)/dip_switch.c
460endif 455endif
461 456
457VALID_MAGIC_TYPES := yes full lite
458BOOTMAGIC_ENABLE ?= no
459ifneq ($(strip $(BOOTMAGIC_ENABLE)), no)
460 ifeq ($(filter $(BOOTMAGIC_ENABLE),$(VALID_MAGIC_TYPES)),)
461 $(error BOOTMAGIC_ENABLE="$(BOOTMAGIC_ENABLE)" is not a valid type of magic)
462 endif
463 ifeq ($(strip $(BOOTMAGIC_ENABLE)), lite)
464 OPT_DEFS += -DBOOTMAGIC_LITE
465 QUANTUM_SRC += $(QUANTUM_DIR)/bootmagic/bootmagic_lite.c
466 else
467 OPT_DEFS += -DBOOTMAGIC_ENABLE
468 QUANTUM_SRC += $(QUANTUM_DIR)/bootmagic/bootmagic_full.c
469 endif
470endif
471COMMON_VPATH += $(QUANTUM_DIR)/bootmagic
472QUANTUM_SRC += $(QUANTUM_DIR)/bootmagic/magic.c
473
462VALID_CUSTOM_MATRIX_TYPES:= yes lite no 474VALID_CUSTOM_MATRIX_TYPES:= yes lite no
463 475
464CUSTOM_MATRIX ?= no 476CUSTOM_MATRIX ?= no