diff options
author | Ryan <fauxpark@gmail.com> | 2021-06-22 18:26:23 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-22 18:26:23 +1000 |
commit | d61e5c0027e289ccf48652afa4c442342e7ccf04 (patch) | |
tree | e8edc86d191a190691b4722f05e32bdc40affc58 /common_features.mk | |
parent | c03cb4edd7ff73391a0a64f0c4f5e0755e902908 (diff) | |
download | qmk_firmware-d61e5c0027e289ccf48652afa4c442342e7ccf04.tar.gz qmk_firmware-d61e5c0027e289ccf48652afa4c442342e7ccf04.zip |
Move LED/RGB Matrix code into their own directories (#13257)
Diffstat (limited to 'common_features.mk')
-rw-r--r-- | common_features.mk | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/common_features.mk b/common_features.mk index 9c6fc9cdf..33a8da23d 100644 --- a/common_features.mk +++ b/common_features.mk | |||
@@ -230,9 +230,12 @@ ifneq (,$(filter $(MCU), atmega16u2 atmega32u2 at90usb162)) | |||
230 | # ATmegaxxU2 does not have hardware MUL instruction - lib8tion must be told to use software multiplication routines | 230 | # ATmegaxxU2 does not have hardware MUL instruction - lib8tion must be told to use software multiplication routines |
231 | OPT_DEFS += -DLIB8_ATTINY | 231 | OPT_DEFS += -DLIB8_ATTINY |
232 | endif | 232 | endif |
233 | SRC += $(QUANTUM_DIR)/process_keycode/process_backlight.c | 233 | COMMON_VPATH += $(QUANTUM_DIR)/led_matrix |
234 | SRC += $(QUANTUM_DIR)/led_matrix.c | 234 | COMMON_VPATH += $(QUANTUM_DIR)/led_matrix/animations |
235 | SRC += $(QUANTUM_DIR)/led_matrix_drivers.c | 235 | COMMON_VPATH += $(QUANTUM_DIR)/led_matrix/animations/runners |
236 | SRC += process_backlight.c | ||
237 | SRC += led_matrix.c | ||
238 | SRC += led_matrix_drivers.c | ||
236 | CIE1931_CURVE := yes | 239 | CIE1931_CURVE := yes |
237 | 240 | ||
238 | ifeq ($(strip $(LED_MATRIX_DRIVER)), IS31FL3731) | 241 | ifeq ($(strip $(LED_MATRIX_DRIVER)), IS31FL3731) |
@@ -255,9 +258,12 @@ ifneq (,$(filter $(MCU), atmega16u2 atmega32u2 at90usb162)) | |||
255 | # ATmegaxxU2 does not have hardware MUL instruction - lib8tion must be told to use software multiplication routines | 258 | # ATmegaxxU2 does not have hardware MUL instruction - lib8tion must be told to use software multiplication routines |
256 | OPT_DEFS += -DLIB8_ATTINY | 259 | OPT_DEFS += -DLIB8_ATTINY |
257 | endif | 260 | endif |
258 | SRC += $(QUANTUM_DIR)/color.c | 261 | COMMON_VPATH += $(QUANTUM_DIR)/rgb_matrix |
259 | SRC += $(QUANTUM_DIR)/rgb_matrix.c | 262 | COMMON_VPATH += $(QUANTUM_DIR)/rgb_matrix/animations |
260 | SRC += $(QUANTUM_DIR)/rgb_matrix_drivers.c | 263 | COMMON_VPATH += $(QUANTUM_DIR)/rgb_matrix/animations/runners |
264 | SRC += color.c | ||
265 | SRC += rgb_matrix.c | ||
266 | SRC += rgb_matrix_drivers.c | ||
261 | CIE1931_CURVE := yes | 267 | CIE1931_CURVE := yes |
262 | RGB_KEYCODES_ENABLE := yes | 268 | RGB_KEYCODES_ENABLE := yes |
263 | 269 | ||