summaryrefslogtreecommitdiffstats
path: root/common_features.mk
diff options
context:
space:
mode:
authorJack Humbert <jack.humb@gmail.com>2017-09-15 21:43:58 -0400
committerJack Humbert <jack.humb@gmail.com>2017-09-15 21:43:58 -0400
commitdc7d0c7b7442b87600352e083e3da4a08cb2d069 (patch)
treeac6e6b0417e3c6550e6c8e07f615fabdc74b1ef1 /common_features.mk
parentafcf3a2878d5b5de0f9daba201ab44d779a8b2b1 (diff)
parentd5486265b8afcada68306c815b08c225fce287af (diff)
update to driver separation
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)