summaryrefslogtreecommitdiff
path: root/common_features.mk
diff options
context:
space:
mode:
authorJoel Challis <git@zvecr.com>2019-10-17 17:48:58 +0100
committerDrashna Jael're <drashna@live.com>2019-12-05 16:03:52 -0800
commit4af7cbcc719e6fa7aef0991d87e372a280c430d4 (patch)
tree43a0c46c63771b4d9da00deecce6e25cc1a10739 /common_features.mk
parente54578a89cbfffba11b3857039296e5de766dd34 (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