summaryrefslogtreecommitdiff
path: root/common_features.mk
diff options
context:
space:
mode:
authorJoel Challis <git@zvecr.com>2019-10-17 17:48:58 +0100
committerFlorian Didron <fdidron@users.noreply.github.com>2019-11-04 17:23:21 +0900
commitd0ee924c9d1689845ca067ca1175521824870ba7 (patch)
tree43a0c46c63771b4d9da00deecce6e25cc1a10739 /common_features.mk
parent9d1f6c699bae80c6afa1ff92dcc506c546a259b8 (diff)
Move tmk_core/common/backlight to quantum/backlight (#6710)
* Move tmk_core/common/backlight to quantum/backlight * Add guards to backlight inclusion * Add guards to backlight inclusion * Update backlight guards on clueboard/60 * Use full paths to avoid vpath issues
Diffstat (limited to 'common_features.mk')
-rw-r--r--common_features.mk8
1 files changed, 7 insertions, 1 deletions
diff --git a/common_features.mk b/common_features.mk
index 3bc6f1c73b..a4af319fc6 100644
--- a/common_features.mk
+++ b/common_features.mk
@@ -233,7 +233,13 @@ ifeq ($(strip $(BACKLIGHT_ENABLE)), yes)
ifeq ($(strip $(VISUALIZER_ENABLE)), yes)
CIE1931_CURVE = yes
endif
- ifeq ($(strip $(BACKLIGHT_CUSTOM_DRIVER)), yes)
+
+
+ COMMON_VPATH += $(QUANTUM_DIR)/backlight
+ SRC += $(QUANTUM_DIR)/backlight/backlight.c
+ OPT_DEFS += -DBACKLIGHT_ENABLE
+
+ ifeq ($(strip $(BACKLIGHT_ENABLE)), custom)
OPT_DEFS += -DBACKLIGHT_CUSTOM_DRIVER
endif
endif