Relocate backlight drivers (#21444)
This commit is contained in:
		
							parent
							
								
									636093f75d
								
							
						
					
					
						commit
						cb2331713c
					
				
					 41 changed files with 17 additions and 164 deletions
				
			
		| 
						 | 
				
			
			@ -565,18 +565,18 @@ ifeq ($(strip $(BACKLIGHT_ENABLE)), yes)
 | 
			
		|||
    endif
 | 
			
		||||
 | 
			
		||||
    COMMON_VPATH += $(QUANTUM_DIR)/backlight
 | 
			
		||||
    COMMON_VPATH += $(DRIVER_PATH)/backlight
 | 
			
		||||
    SRC += $(QUANTUM_DIR)/backlight/backlight.c
 | 
			
		||||
    SRC += $(QUANTUM_DIR)/process_keycode/process_backlight.c
 | 
			
		||||
    OPT_DEFS += -DBACKLIGHT_ENABLE
 | 
			
		||||
 | 
			
		||||
    ifeq ($(strip $(BACKLIGHT_DRIVER)), custom)
 | 
			
		||||
        OPT_DEFS += -DBACKLIGHT_CUSTOM_DRIVER
 | 
			
		||||
    else
 | 
			
		||||
    ifneq ($(strip $(BACKLIGHT_DRIVER)), custom)
 | 
			
		||||
        SRC += $(QUANTUM_DIR)/backlight/backlight_driver_common.c
 | 
			
		||||
        ifeq ($(strip $(BACKLIGHT_DRIVER)), pwm)
 | 
			
		||||
            SRC += $(QUANTUM_DIR)/backlight/backlight_$(PLATFORM_KEY).c
 | 
			
		||||
 | 
			
		||||
        ifeq ($(strip $(BACKLIGHT_DRIVER)), software)
 | 
			
		||||
            SRC += $(DRIVER_PATH)/backlight/backlight_software.c
 | 
			
		||||
        else
 | 
			
		||||
            SRC += $(QUANTUM_DIR)/backlight/backlight_$(strip $(BACKLIGHT_DRIVER)).c
 | 
			
		||||
            SRC += $(PLATFORM_PATH)/$(PLATFORM_KEY)/$(DRIVER_DIR)/backlight_$(strip $(BACKLIGHT_DRIVER)).c
 | 
			
		||||
        endif
 | 
			
		||||
    endif
 | 
			
		||||
endif
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue