From aed82bc6a07ab72a3bec7b4b578b6cb644a92d51 Mon Sep 17 00:00:00 2001 From: Drashna Jaelre Date: Fri, 12 Aug 2022 18:04:02 -0700 Subject: [PATCH] Move Encoder+Encoder Map from generic features (#18018) --- builddefs/common_features.mk | 8 ++++++++ builddefs/generic_features.mk | 2 -- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/builddefs/common_features.mk b/builddefs/common_features.mk index 8d31f694a70ce4929b5c11d7304606a158c120b6..1f1f9457604984e19ed9ea696368e440f9d98ada 100644 --- a/builddefs/common_features.mk +++ b/builddefs/common_features.mk @@ -893,3 +893,11 @@ ifeq ($(strip $(BLUETOOTH_ENABLE)), yes) QUANTUM_LIB_SRC += uart.c endif endif + +ifeq ($(strip $(ENCODER_ENABLE)), yes) + COMMON_VPATH += $(QUANTUM_DIR)/encoder.c + OPT_DEFS += -DENCODER_ENABLE + ifeq ($(strip $(ENCODER_MAP_ENABLE)), yes) + OPT_DEFS += -DENCODER_MAP_ENABLE + endif +endif diff --git a/builddefs/generic_features.mk b/builddefs/generic_features.mk index c3f1ec0f722d647a4e4d97172653e8a26bd51e84..f195e9fd75e7e6297f131f9b3092298aadc60bcd 100644 --- a/builddefs/generic_features.mk +++ b/builddefs/generic_features.mk @@ -25,8 +25,6 @@ GENERIC_FEATURES = \ DIP_SWITCH \ DYNAMIC_KEYMAP \ DYNAMIC_MACRO \ - ENCODER \ - ENCODER_MAP \ GRAVE_ESC \ HAPTIC \ KEY_LOCK \