diff options
Diffstat (limited to 'common_features.mk')
| -rw-r--r-- | common_features.mk | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/common_features.mk b/common_features.mk index 8c3361732..8c7043cb7 100644 --- a/common_features.mk +++ b/common_features.mk | |||
| @@ -114,8 +114,26 @@ 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 | endif | ||
| 124 | OPT_DEFS += -DLED_MATRIX_ENABLE | ||
| 125 | SRC += $(QUANTUM_DIR)/led_matrix.c | ||
| 126 | SRC += $(QUANTUM_DIR)/led_matrix_drivers.c | ||
| 127 | endif | ||
| 128 | |||
| 129 | ifeq ($(strip $(LED_MATRIX_ENABLE)), IS31FL3731) | ||
| 130 | OPT_DEFS += -DIS31FL3731 | ||
| 131 | COMMON_VPATH += $(DRIVER_PATH)/issi | ||
| 132 | SRC += is31fl3731-simple.c | ||
| 133 | SRC += i2c_master.c | ||
| 134 | endif | ||
| 135 | |||
| 136 | RGB_MATRIX_ENABLE ?= no | ||
| 119 | ifneq ($(strip $(RGB_MATRIX_ENABLE)), no) | 137 | ifneq ($(strip $(RGB_MATRIX_ENABLE)), no) |
| 120 | ifeq ($(filter $(RGB_MATRIX_ENABLE),$(VALID_MATRIX_TYPES)),) | 138 | ifeq ($(filter $(RGB_MATRIX_ENABLE),$(VALID_MATRIX_TYPES)),) |
| 121 | $(error RGB_MATRIX_ENABLE="$(RGB_MATRIX_ENABLE)" is not a valid matrix type) | 139 | $(error RGB_MATRIX_ENABLE="$(RGB_MATRIX_ENABLE)" is not a valid matrix type) |
