summaryrefslogtreecommitdiff
path: root/builddefs
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2024-10-13 03:43:50 +1100
committerGitHub <noreply@github.com>2024-10-12 18:43:50 +0200
commit6fa11bf21913b5ccb531acc3c2baec963f4d384a (patch)
treeaaf6188a4579949cc1fbac61d0fee5234b97996a /builddefs
parent5c97a78ce6ab45643dcb420ba2ad20c30dcd5b8a (diff)
Separate RGBLight/RGB Matrix keycode handling (#23679)
* Separate RGBLight/RGB Matrix keycode handling * Remove `_DISABLE_KEYCODES` handling * Update RGB Matrix keycode docs * Update underglow keycodes for previously migrated boards * Update keycodes for boards with custom handling * Fix typos * Fix bad merge
Diffstat (limited to 'builddefs')
-rw-r--r--builddefs/common_features.mk8
1 files changed, 2 insertions, 6 deletions
diff --git a/builddefs/common_features.mk b/builddefs/common_features.mk
index a2c88d7e99..cc13fbd3f7 100644
--- a/builddefs/common_features.mk
+++ b/builddefs/common_features.mk
@@ -306,11 +306,11 @@ ifeq ($(strip $(RGBLIGHT_ENABLE)), yes)
306 POST_CONFIG_H += $(QUANTUM_DIR)/rgblight/rgblight_post_config.h 306 POST_CONFIG_H += $(QUANTUM_DIR)/rgblight/rgblight_post_config.h
307 OPT_DEFS += -DRGBLIGHT_ENABLE 307 OPT_DEFS += -DRGBLIGHT_ENABLE
308 OPT_DEFS += -DRGBLIGHT_$(strip $(shell echo $(RGBLIGHT_DRIVER) | tr '[:lower:]' '[:upper:]')) 308 OPT_DEFS += -DRGBLIGHT_$(strip $(shell echo $(RGBLIGHT_DRIVER) | tr '[:lower:]' '[:upper:]'))
309 SRC += $(QUANTUM_DIR)/process_keycode/process_underglow.c
309 SRC += $(QUANTUM_DIR)/color.c 310 SRC += $(QUANTUM_DIR)/color.c
310 SRC += $(QUANTUM_DIR)/rgblight/rgblight.c 311 SRC += $(QUANTUM_DIR)/rgblight/rgblight.c
311 SRC += $(QUANTUM_DIR)/rgblight/rgblight_drivers.c 312 SRC += $(QUANTUM_DIR)/rgblight/rgblight_drivers.c
312 CIE1931_CURVE := yes 313 CIE1931_CURVE := yes
313 RGB_KEYCODES_ENABLE := yes
314 endif 314 endif
315 315
316 ifeq ($(strip $(RGBLIGHT_DRIVER)), ws2812) 316 ifeq ($(strip $(RGBLIGHT_DRIVER)), ws2812)
@@ -456,12 +456,12 @@ ifeq ($(strip $(RGB_MATRIX_ENABLE)), yes)
456 COMMON_VPATH += $(QUANTUM_DIR)/rgb_matrix/animations 456 COMMON_VPATH += $(QUANTUM_DIR)/rgb_matrix/animations
457 COMMON_VPATH += $(QUANTUM_DIR)/rgb_matrix/animations/runners 457 COMMON_VPATH += $(QUANTUM_DIR)/rgb_matrix/animations/runners
458 POST_CONFIG_H += $(QUANTUM_DIR)/rgb_matrix/post_config.h 458 POST_CONFIG_H += $(QUANTUM_DIR)/rgb_matrix/post_config.h
459 SRC += $(QUANTUM_DIR)/process_keycode/process_rgb_matrix.c
459 SRC += $(QUANTUM_DIR)/color.c 460 SRC += $(QUANTUM_DIR)/color.c
460 SRC += $(QUANTUM_DIR)/rgb_matrix/rgb_matrix.c 461 SRC += $(QUANTUM_DIR)/rgb_matrix/rgb_matrix.c
461 SRC += $(QUANTUM_DIR)/rgb_matrix/rgb_matrix_drivers.c 462 SRC += $(QUANTUM_DIR)/rgb_matrix/rgb_matrix_drivers.c
462 LIB8TION_ENABLE := yes 463 LIB8TION_ENABLE := yes
463 CIE1931_CURVE := yes 464 CIE1931_CURVE := yes
464 RGB_KEYCODES_ENABLE := yes
465 465
466 ifeq ($(strip $(RGB_MATRIX_DRIVER)), aw20216s) 466 ifeq ($(strip $(RGB_MATRIX_DRIVER)), aw20216s)
467 SPI_DRIVER_REQUIRED = yes 467 SPI_DRIVER_REQUIRED = yes
@@ -564,10 +564,6 @@ ifeq ($(strip $(RGB_MATRIX_ENABLE)), yes)
564 endif 564 endif
565endif 565endif
566 566
567ifeq ($(strip $(RGB_KEYCODES_ENABLE)), yes)
568 SRC += $(QUANTUM_DIR)/process_keycode/process_rgb.c
569endif
570
571VARIABLE_TRACE ?= no 567VARIABLE_TRACE ?= no
572ifneq ($(strip $(VARIABLE_TRACE)),no) 568ifneq ($(strip $(VARIABLE_TRACE)),no)
573 SRC += $(QUANTUM_DIR)/variable_trace.c 569 SRC += $(QUANTUM_DIR)/variable_trace.c