summaryrefslogtreecommitdiff
path: root/common_features.mk
diff options
context:
space:
mode:
Diffstat (limited to 'common_features.mk')
-rw-r--r--common_features.mk7
1 files changed, 5 insertions, 2 deletions
diff --git a/common_features.mk b/common_features.mk
index d499d1f0b7..6f29c97c9a 100644
--- a/common_features.mk
+++ b/common_features.mk
@@ -93,10 +93,13 @@ endif
ifeq ($(strip $(RGBLIGHT_ENABLE)), yes)
OPT_DEFS += -DRGBLIGHT_ENABLE
- SRC += ws2812.c
- SRC += $(QUANTUM_DIR)/rgblight.c
CIE1931_CURVE = yes
LED_BREATHING_TABLE = yes
+ ifeq ($(strip $(RGBLIGHT_CUSTOM_DRIVER)), yes)
+ OPT_DEFS += -DRGBLIGHT_CUSTOM_DRIVER
+ else
+ SRC += ws2812.c
+ endif
endif
ifeq ($(strip $(TAP_DANCE_ENABLE)), yes)