diff options
| -rw-r--r-- | common_features.mk | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/common_features.mk b/common_features.mk index ff01ecb85..b5fdb404b 100644 --- a/common_features.mk +++ b/common_features.mk | |||
| @@ -118,12 +118,13 @@ VALID_MATRIX_TYPES := yes IS31FL3731 IS31FL3733 custom | |||
| 118 | 118 | ||
| 119 | LED_MATRIX_ENABLE ?= no | 119 | LED_MATRIX_ENABLE ?= no |
| 120 | ifneq ($(strip $(LED_MATRIX_ENABLE)), no) | 120 | ifneq ($(strip $(LED_MATRIX_ENABLE)), no) |
| 121 | ifeq ($(filter $(LED_MATRIX_ENABLE),$(VALID_MATRIX_TYPES)),) | 121 | ifeq ($(filter $(LED_MATRIX_ENABLE),$(VALID_MATRIX_TYPES)),) |
| 122 | $(error LED_MATRIX_ENABLE="$(LED_MATRIX_ENABLE)" is not a valid matrix type) | 122 | $(error LED_MATRIX_ENABLE="$(LED_MATRIX_ENABLE)" is not a valid matrix type) |
| 123 | endif | 123 | else |
| 124 | OPT_DEFS += -DLED_MATRIX_ENABLE | 124 | OPT_DEFS += -DLED_MATRIX_ENABLE -DBACKLIGHT_ENABLE -DBACKLIGHT_CUSTOM_DRIVER |
| 125 | SRC += $(QUANTUM_DIR)/led_matrix.c | 125 | SRC += $(QUANTUM_DIR)/led_matrix.c |
| 126 | SRC += $(QUANTUM_DIR)/led_matrix_drivers.c | 126 | SRC += $(QUANTUM_DIR)/led_matrix_drivers.c |
| 127 | endif | ||
| 127 | endif | 128 | endif |
| 128 | 129 | ||
| 129 | ifeq ($(strip $(LED_MATRIX_ENABLE)), IS31FL3731) | 130 | ifeq ($(strip $(LED_MATRIX_ENABLE)), IS31FL3731) |
| @@ -212,9 +213,6 @@ ifeq ($(strip $(BACKLIGHT_ENABLE)), yes) | |||
| 212 | ifeq ($(strip $(BACKLIGHT_CUSTOM_DRIVER)), yes) | 213 | ifeq ($(strip $(BACKLIGHT_CUSTOM_DRIVER)), yes) |
| 213 | OPT_DEFS += -DBACKLIGHT_CUSTOM_DRIVER | 214 | OPT_DEFS += -DBACKLIGHT_CUSTOM_DRIVER |
| 214 | endif | 215 | endif |
| 215 | ifeq ($(filter $(LED_MATRIX_ENABLE),$(VALID_MATRIX_TYPES)),) | ||
| 216 | OPT_DEFS += -DBACKLIGHT_CUSTOM_DRIVER | ||
| 217 | endif | ||
| 218 | endif | 216 | endif |
| 219 | 217 | ||
| 220 | ifeq ($(strip $(CIE1931_CURVE)), yes) | 218 | ifeq ($(strip $(CIE1931_CURVE)), yes) |
