diff options
Diffstat (limited to 'common_features.mk')
| -rw-r--r-- | common_features.mk | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/common_features.mk b/common_features.mk index d03dbed09..6f02dbac6 100644 --- a/common_features.mk +++ b/common_features.mk | |||
| @@ -114,8 +114,27 @@ ifeq ($(strip $(RGBLIGHT_ENABLE)), yes) | |||
| 114 | endif | 114 | endif |
| 115 | endif | 115 | endif |
| 116 | 116 | ||
| 117 | RGB_MATRIX_ENABLE ?= no | ||
| 118 | VALID_MATRIX_TYPES := yes IS31FL3731 IS31FL3733 custom | 117 | VALID_MATRIX_TYPES := yes IS31FL3731 IS31FL3733 custom |
| 118 | |||
| 119 | LED_MATRIX_ENABLE ?= no | ||
| 120 | ifneq ($(strip $(LED_MATRIX_ENABLE)), no) | ||
| 121 | ifeq ($(filter $(LED_MATRIX_ENABLE),$(VALID_MATRIX_TYPES)),) | ||
| 122 | $(error LED_MATRIX_ENABLE="$(LED_MATRIX_ENABLE)" is not a valid matrix type) | ||
| 123 | else | ||
| 124 | OPT_DEFS += -DLED_MATRIX_ENABLE -DBACKLIGHT_ENABLE -DBACKLIGHT_CUSTOM_DRIVER | ||
| 125 | SRC += $(QUANTUM_DIR)/led_matrix.c | ||
| 126 | SRC += $(QUANTUM_DIR)/led_matrix_drivers.c | ||
| 127 | endif | ||
| 128 | endif | ||
| 129 | |||
| 130 | ifeq ($(strip $(LED_MATRIX_ENABLE)), IS31FL3731) | ||
| 131 | OPT_DEFS += -DIS31FL3731 | ||
| 132 | COMMON_VPATH += $(DRIVER_PATH)/issi | ||
| 133 | SRC += is31fl3731-simple.c | ||
| 134 | SRC += i2c_master.c | ||
| 135 | endif | ||
| 136 | |||
| 137 | RGB_MATRIX_ENABLE ?= no | ||
| 119 | ifneq ($(strip $(RGB_MATRIX_ENABLE)), no) | 138 | ifneq ($(strip $(RGB_MATRIX_ENABLE)), no) |
| 120 | ifeq ($(filter $(RGB_MATRIX_ENABLE),$(VALID_MATRIX_TYPES)),) | 139 | ifeq ($(filter $(RGB_MATRIX_ENABLE),$(VALID_MATRIX_TYPES)),) |
| 121 | $(error RGB_MATRIX_ENABLE="$(RGB_MATRIX_ENABLE)" is not a valid matrix type) | 140 | $(error RGB_MATRIX_ENABLE="$(RGB_MATRIX_ENABLE)" is not a valid matrix type) |
| @@ -191,7 +210,7 @@ ifeq ($(strip $(BACKLIGHT_ENABLE)), yes) | |||
| 191 | ifeq ($(strip $(VISUALIZER_ENABLE)), yes) | 210 | ifeq ($(strip $(VISUALIZER_ENABLE)), yes) |
| 192 | CIE1931_CURVE = yes | 211 | CIE1931_CURVE = yes |
| 193 | endif | 212 | endif |
| 194 | ifeq ($(strip $(BACKLIGHT_CUSTOM_DRIVER)), yes) | 213 | ifeq ($(strip $(BACKLIGHT_CUSTOM_DRIVER)), yes) |
| 195 | OPT_DEFS += -DBACKLIGHT_CUSTOM_DRIVER | 214 | OPT_DEFS += -DBACKLIGHT_CUSTOM_DRIVER |
| 196 | endif | 215 | endif |
| 197 | endif | 216 | endif |
