aboutsummaryrefslogtreecommitdiff
path: root/common_features.mk
diff options
context:
space:
mode:
Diffstat (limited to 'common_features.mk')
-rw-r--r--common_features.mk24
1 files changed, 10 insertions, 14 deletions
diff --git a/common_features.mk b/common_features.mk
index 7dd63be5b..9b9425dc3 100644
--- a/common_features.mk
+++ b/common_features.mk
@@ -495,23 +495,19 @@ ifeq ($(strip $(CRC_ENABLE)), yes)
495 SRC += crc.c 495 SRC += crc.c
496endif 496endif
497 497
498HAPTIC_ENABLE ?= no 498ifeq ($(strip $(HAPTIC_ENABLE)),yes)
499ifneq ($(strip $(HAPTIC_ENABLE)),no)
500 COMMON_VPATH += $(DRIVER_PATH)/haptic 499 COMMON_VPATH += $(DRIVER_PATH)/haptic
501 OPT_DEFS += -DHAPTIC_ENABLE
502 SRC += $(QUANTUM_DIR)/haptic.c
503 SRC += $(QUANTUM_DIR)/process_keycode/process_haptic.c
504endif
505 500
506ifneq ($(filter DRV2605L, $(HAPTIC_ENABLE)), ) 501 ifneq ($(filter DRV2605L, $(HAPTIC_DRIVER)), )
507 SRC += DRV2605L.c 502 SRC += DRV2605L.c
508 QUANTUM_LIB_SRC += i2c_master.c 503 QUANTUM_LIB_SRC += i2c_master.c
509 OPT_DEFS += -DDRV2605L 504 OPT_DEFS += -DDRV2605L
510endif 505 endif
511 506
512ifneq ($(filter SOLENOID, $(HAPTIC_ENABLE)), ) 507 ifneq ($(filter SOLENOID, $(HAPTIC_DRIVER)), )
513 SRC += solenoid.c 508 SRC += solenoid.c
514 OPT_DEFS += -DSOLENOID_ENABLE 509 OPT_DEFS += -DSOLENOID_ENABLE
510 endif
515endif 511endif
516 512
517ifeq ($(strip $(HD44780_ENABLE)), yes) 513ifeq ($(strip $(HD44780_ENABLE)), yes)