diff --git a/builddefs/common_features.mk b/builddefs/common_features.mk index 823d7483ec4..1469172a04a 100644 --- a/builddefs/common_features.mk +++ b/builddefs/common_features.mk @@ -915,7 +915,7 @@ ifeq ($(strip $(BLUETOOTH_ENABLE)), yes) endif ifeq ($(strip $(ENCODER_ENABLE)), yes) - COMMON_VPATH += $(QUANTUM_DIR)/encoder.c + SRC += $(QUANTUM_DIR)/encoder.c OPT_DEFS += -DENCODER_ENABLE ifeq ($(strip $(ENCODER_MAP_ENABLE)), yes) OPT_DEFS += -DENCODER_MAP_ENABLE