aboutsummaryrefslogtreecommitdiffstats
path: root/common_features.mk
diff options
context:
space:
mode:
authorGravatar Joel Challis <git@zvecr.com>2020-01-13 01:30:56 +0000
committerGravatar GitHub <noreply@github.com>2020-01-13 01:30:56 +0000
commitb89e35bdd33b3953711de8b0be64c76b64e9701b (patch)
treea597dafbaf6dfe50f94a70eade9954d78b84acd6 /common_features.mk
parent2ce3025be2fd28c7ea3f2fd33c7aba7277ff668b (diff)
downloadqmk_firmware-b89e35bdd33b3953711de8b0be64c76b64e9701b.tar.gz
Relocate common backlight functionally (#7273)
Diffstat (limited to 'common_features.mk')
-rw-r--r--common_features.mk8
1 files changed, 3 insertions, 5 deletions
diff --git a/common_features.mk b/common_features.mk
index 67c64b425..01ceb8278 100644
--- a/common_features.mk
+++ b/common_features.mk
@@ -257,13 +257,11 @@ ifeq ($(strip $(BACKLIGHT_ENABLE)), yes)
SRC += $(QUANTUM_DIR)/backlight/backlight.c
OPT_DEFS += -DBACKLIGHT_ENABLE
- ifeq ($(strip $(BACKLIGHT_DRIVER)), software)
+ ifeq ($(strip $(BACKLIGHT_DRIVER)), custom)
+ OPT_DEFS += -DBACKLIGHT_CUSTOM_DRIVER
+ else ifeq ($(strip $(BACKLIGHT_DRIVER)), software)
SRC += $(QUANTUM_DIR)/backlight/backlight_soft.c
else
- ifeq ($(strip $(BACKLIGHT_DRIVER)), custom)
- OPT_DEFS += -DBACKLIGHT_CUSTOM_DRIVER
- endif
-
ifeq ($(PLATFORM),AVR)
SRC += $(QUANTUM_DIR)/backlight/backlight_avr.c
else