diff options
author | Ryan <[email protected]> | 2023-08-15 20:06:57 +1000 |
---|---|---|
committer | GitHub <[email protected]> | 2023-08-15 11:06:57 +0100 |
commit | 1c069b13b9c410d30cb3b0126b21b984284c405c (patch) | |
tree | e1c8ed8a6e4a50fb7afb8fe9b017743f0b0b87c9 /builddefs/common_features.mk | |
parent | 3ece80f73f781a719ea6665af1d01b99922388e9 (diff) | |
download | qmk_firmware-1c069b13b9c410d30cb3b0126b21b984284c405c.tar.gz qmk_firmware-1c069b13b9c410d30cb3b0126b21b984284c405c.zip |
rgblight: driver selection cleanups (#21558)
Diffstat (limited to 'builddefs/common_features.mk')
-rw-r--r-- | builddefs/common_features.mk | 12 |
1 files changed, 4 insertions, 8 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 |