aboutsummaryrefslogtreecommitdiff
path: root/common_features.mk
diff options
context:
space:
mode:
Diffstat (limited to 'common_features.mk')
-rw-r--r--common_features.mk12
1 files changed, 7 insertions, 5 deletions
diff --git a/common_features.mk b/common_features.mk
index a431923bc..93c34c7d5 100644
--- a/common_features.mk
+++ b/common_features.mk
@@ -175,7 +175,9 @@ ifneq ($(strip $(LED_MATRIX_ENABLE)), no)
175 ifeq ($(filter $(LED_MATRIX_ENABLE),$(VALID_MATRIX_TYPES)),) 175 ifeq ($(filter $(LED_MATRIX_ENABLE),$(VALID_MATRIX_TYPES)),)
176 $(error LED_MATRIX_ENABLE="$(LED_MATRIX_ENABLE)" is not a valid matrix type) 176 $(error LED_MATRIX_ENABLE="$(LED_MATRIX_ENABLE)" is not a valid matrix type)
177 else 177 else
178 OPT_DEFS += -DLED_MATRIX_ENABLE -DBACKLIGHT_ENABLE -DBACKLIGHT_CUSTOM_DRIVER 178 BACKLIGHT_ENABLE = yes
179 BACKLIGHT_DRIVER = custom
180 OPT_DEFS += -DLED_MATRIX_ENABLE
179 SRC += $(QUANTUM_DIR)/led_matrix.c 181 SRC += $(QUANTUM_DIR)/led_matrix.c
180 SRC += $(QUANTUM_DIR)/led_matrix_drivers.c 182 SRC += $(QUANTUM_DIR)/led_matrix_drivers.c
181 endif 183 endif
@@ -300,10 +302,6 @@ ifeq ($(strip $(BACKLIGHT_ENABLE)), yes)
300 $(error BACKLIGHT_DRIVER="$(BACKLIGHT_DRIVER)" is not a valid backlight type) 302 $(error BACKLIGHT_DRIVER="$(BACKLIGHT_DRIVER)" is not a valid backlight type)
301 endif 303 endif
302 304
303 ifeq ($(strip $(VISUALIZER_ENABLE)), yes)
304 CIE1931_CURVE := yes
305 endif
306
307 COMMON_VPATH += $(QUANTUM_DIR)/backlight 305 COMMON_VPATH += $(QUANTUM_DIR)/backlight
308 SRC += $(QUANTUM_DIR)/backlight/backlight.c 306 SRC += $(QUANTUM_DIR)/backlight/backlight.c
309 OPT_DEFS += -DBACKLIGHT_ENABLE 307 OPT_DEFS += -DBACKLIGHT_ENABLE
@@ -343,6 +341,10 @@ ifeq ($(strip $(WS2812_DRIVER_REQUIRED)), yes)
343 endif 341 endif
344endif 342endif
345 343
344ifeq ($(strip $(VISUALIZER_ENABLE)), yes)
345 CIE1931_CURVE := yes
346endif
347
346ifeq ($(strip $(CIE1931_CURVE)), yes) 348ifeq ($(strip $(CIE1931_CURVE)), yes)
347 OPT_DEFS += -DUSE_CIE1931_CURVE 349 OPT_DEFS += -DUSE_CIE1931_CURVE
348 LED_TABLES := yes 350 LED_TABLES := yes