diff options
author | Joel Challis <git@zvecr.com> | 2021-10-18 12:55:44 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-18 12:55:44 +0100 |
commit | 01b702bece4de0aa17c1df39a3305a1b643fd762 (patch) | |
tree | 73c898da1a4d9408b95c7441fc7a01f9aac728c9 /common_features.mk | |
parent | e50867d52d9c255570630a23514842749b45e4c1 (diff) | |
download | qmk_firmware-01b702bece4de0aa17c1df39a3305a1b643fd762.tar.gz qmk_firmware-01b702bece4de0aa17c1df39a3305a1b643fd762.zip |
Split out HAPTIC_ENABLE to have separate DRIVER option (#14854)
* DRIVER -> ENABLE
* Update generic_features.mk
Co-authored-by: Ryan <fauxpark@gmail.com>
* Update common_features.mk
Co-authored-by: Ryan <fauxpark@gmail.com>
Diffstat (limited to 'common_features.mk')
-rw-r--r-- | common_features.mk | 24 |
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 |
496 | endif | 496 | endif |
497 | 497 | ||
498 | HAPTIC_ENABLE ?= no | 498 | ifeq ($(strip $(HAPTIC_ENABLE)),yes) |
499 | ifneq ($(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 | ||
504 | endif | ||
505 | 500 | ||
506 | ifneq ($(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 |
510 | endif | 505 | endif |
511 | 506 | ||
512 | ifneq ($(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 | ||
515 | endif | 511 | endif |
516 | 512 | ||
517 | ifeq ($(strip $(HD44780_ENABLE)), yes) | 513 | ifeq ($(strip $(HD44780_ENABLE)), yes) |