diff options
Diffstat (limited to 'common_features.mk')
| -rw-r--r-- | common_features.mk | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/common_features.mk b/common_features.mk index 7bb9187bb..a1f95955a 100644 --- a/common_features.mk +++ b/common_features.mk | |||
| @@ -234,7 +234,7 @@ ifeq ($(strip $(BACKLIGHT_CUSTOM_DRIVER)), yes) | |||
| 234 | BACKLIGHT_ENABLE = custom | 234 | BACKLIGHT_ENABLE = custom |
| 235 | endif | 235 | endif |
| 236 | 236 | ||
| 237 | VALID_BACKLIGHT_TYPES := yes custom | 237 | VALID_BACKLIGHT_TYPES := yes software custom |
| 238 | 238 | ||
| 239 | BACKLIGHT_ENABLE ?= no | 239 | BACKLIGHT_ENABLE ?= no |
| 240 | ifneq ($(strip $(BACKLIGHT_ENABLE)), no) | 240 | ifneq ($(strip $(BACKLIGHT_ENABLE)), no) |
| @@ -246,19 +246,22 @@ ifneq ($(strip $(BACKLIGHT_ENABLE)), no) | |||
| 246 | CIE1931_CURVE = yes | 246 | CIE1931_CURVE = yes |
| 247 | endif | 247 | endif |
| 248 | 248 | ||
| 249 | |||
| 250 | COMMON_VPATH += $(QUANTUM_DIR)/backlight | 249 | COMMON_VPATH += $(QUANTUM_DIR)/backlight |
| 251 | SRC += $(QUANTUM_DIR)/backlight/backlight.c | 250 | SRC += $(QUANTUM_DIR)/backlight/backlight.c |
| 252 | OPT_DEFS += -DBACKLIGHT_ENABLE | 251 | OPT_DEFS += -DBACKLIGHT_ENABLE |
| 253 | 252 | ||
| 254 | ifeq ($(strip $(BACKLIGHT_ENABLE)), custom) | 253 | ifeq ($(strip $(BACKLIGHT_ENABLE)), software) |
| 255 | OPT_DEFS += -DBACKLIGHT_CUSTOM_DRIVER | 254 | SRC += $(QUANTUM_DIR)/backlight/backlight_soft.c |
| 256 | endif | ||
| 257 | |||
| 258 | ifeq ($(PLATFORM),AVR) | ||
| 259 | SRC += $(QUANTUM_DIR)/backlight/backlight_avr.c | ||
| 260 | else | 255 | else |
| 261 | SRC += $(QUANTUM_DIR)/backlight/backlight_arm.c | 256 | ifeq ($(strip $(BACKLIGHT_ENABLE)), custom) |
| 257 | OPT_DEFS += -DBACKLIGHT_CUSTOM_DRIVER | ||
| 258 | endif | ||
| 259 | |||
| 260 | ifeq ($(PLATFORM),AVR) | ||
| 261 | SRC += $(QUANTUM_DIR)/backlight/backlight_avr.c | ||
| 262 | else | ||
| 263 | SRC += $(QUANTUM_DIR)/backlight/backlight_arm.c | ||
| 264 | endif | ||
| 262 | endif | 265 | endif |
| 263 | endif | 266 | endif |
| 264 | 267 | ||
