forked from mirrors/qmk_firmware
Generalise CTPC logic from common_features (#18803)
This commit is contained in:
parent
416c54297e
commit
575db6949a
3 changed files with 6 additions and 5 deletions
|
@ -368,6 +368,10 @@ endif
|
||||||
# Disable features that a keyboard doesn't support
|
# Disable features that a keyboard doesn't support
|
||||||
-include $(BUILDDEFS_PATH)/disable_features.mk
|
-include $(BUILDDEFS_PATH)/disable_features.mk
|
||||||
|
|
||||||
|
ifneq ("$(CONVERTER)","")
|
||||||
|
-include $(CONVERTER)/post_converter.mk
|
||||||
|
endif
|
||||||
|
|
||||||
# Pull in post_rules.mk files from all our subfolders
|
# Pull in post_rules.mk files from all our subfolders
|
||||||
ifneq ("$(wildcard $(KEYBOARD_PATH_1)/post_rules.mk)","")
|
ifneq ("$(wildcard $(KEYBOARD_PATH_1)/post_rules.mk)","")
|
||||||
include $(KEYBOARD_PATH_1)/post_rules.mk
|
include $(KEYBOARD_PATH_1)/post_rules.mk
|
||||||
|
|
|
@ -539,11 +539,7 @@ endif
|
||||||
VALID_BACKLIGHT_TYPES := pwm timer software custom
|
VALID_BACKLIGHT_TYPES := pwm timer software custom
|
||||||
|
|
||||||
BACKLIGHT_ENABLE ?= no
|
BACKLIGHT_ENABLE ?= no
|
||||||
ifeq ($(strip $(CONVERT_TO_PROTON_C)), yes)
|
BACKLIGHT_DRIVER ?= pwm
|
||||||
BACKLIGHT_DRIVER ?= software
|
|
||||||
else
|
|
||||||
BACKLIGHT_DRIVER ?= pwm
|
|
||||||
endif
|
|
||||||
ifeq ($(strip $(BACKLIGHT_ENABLE)), yes)
|
ifeq ($(strip $(BACKLIGHT_ENABLE)), yes)
|
||||||
ifeq ($(filter $(BACKLIGHT_DRIVER),$(VALID_BACKLIGHT_TYPES)),)
|
ifeq ($(filter $(BACKLIGHT_DRIVER),$(VALID_BACKLIGHT_TYPES)),)
|
||||||
$(call CATASTROPHIC_ERROR,Invalid BACKLIGHT_DRIVER,BACKLIGHT_DRIVER="$(BACKLIGHT_DRIVER)" is not a valid backlight type)
|
$(call CATASTROPHIC_ERROR,Invalid BACKLIGHT_DRIVER,BACKLIGHT_DRIVER="$(BACKLIGHT_DRIVER)" is not a valid backlight type)
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
BACKLIGHT_DRIVER ?= software
|
Loading…
Reference in a new issue