diff options
author | Ryan <fauxpark@gmail.com> | 2023-08-15 20:06:57 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-15 11:06:57 +0100 |
commit | 1c069b13b9c410d30cb3b0126b21b984284c405c (patch) | |
tree | e1c8ed8a6e4a50fb7afb8fe9b017743f0b0b87c9 /builddefs | |
parent | 3ece80f73f781a719ea6665af1d01b99922388e9 (diff) |
rgblight: driver selection cleanups (#21558)
Diffstat (limited to 'builddefs')
-rw-r--r-- | builddefs/common_features.mk | 12 | ||||
-rw-r--r-- | builddefs/show_options.mk | 2 |
2 files changed, 5 insertions, 9 deletions
diff --git a/builddefs/common_features.mk b/builddefs/common_features.mk index 47fe56e4aa..906a793df7 100644 --- a/builddefs/common_features.mk +++ b/builddefs/common_features.mk @@ -317,14 +317,10 @@ ifneq ($(strip $(FLASH_DRIVER)), none) endif RGBLIGHT_ENABLE ?= no -VALID_RGBLIGHT_TYPES := WS2812 APA102 custom - -ifeq ($(strip $(RGBLIGHT_CUSTOM_DRIVER)), yes) - RGBLIGHT_DRIVER ?= custom -endif +VALID_RGBLIGHT_TYPES := ws2812 apa102 custom ifeq ($(strip $(RGBLIGHT_ENABLE)), yes) - RGBLIGHT_DRIVER ?= WS2812 + RGBLIGHT_DRIVER ?= ws2812 ifeq ($(filter $(RGBLIGHT_DRIVER),$(VALID_RGBLIGHT_TYPES)),) $(call CATASTROPHIC_ERROR,Invalid RGBLIGHT_DRIVER,RGBLIGHT_DRIVER="$(RGBLIGHT_DRIVER)" is not a valid RGB type) @@ -338,11 +334,11 @@ ifeq ($(strip $(RGBLIGHT_ENABLE)), yes) RGB_KEYCODES_ENABLE := yes endif - ifeq ($(strip $(RGBLIGHT_DRIVER)), WS2812) + ifeq ($(strip $(RGBLIGHT_DRIVER)), ws2812) WS2812_DRIVER_REQUIRED := yes endif - ifeq ($(strip $(RGBLIGHT_DRIVER)), APA102) + ifeq ($(strip $(RGBLIGHT_DRIVER)), apa102) APA102_DRIVER_REQUIRED := yes endif diff --git a/builddefs/show_options.mk b/builddefs/show_options.mk index c21f907881..563d089880 100644 --- a/builddefs/show_options.mk +++ b/builddefs/show_options.mk @@ -17,7 +17,7 @@ HARDWARE_OPTION_NAMES = \ BACKLIGHT_ENABLE \ BACKLIGHT_DRIVER \ RGBLIGHT_ENABLE \ - RGBLIGHT_CUSTOM_DRIVER \ + RGBLIGHT_DRIVER \ RGB_MATRIX_ENABLE \ RGB_MATRIX_DRIVER \ CIE1931_CURVE \ |