2 # Copyright (C) 2006-2011 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
10 define KernelPackage
/leds-gpio
12 TITLE
:=GPIO LED support
13 DEPENDS
:= @GPIO_SUPPORT
14 KCONFIG
:=CONFIG_LEDS_GPIO
15 FILES
:=$(LINUX_DIR
)/drivers
/leds
/leds-gpio.ko
16 AUTOLOAD
:=$(call AutoLoad
,60,leds-gpio
,1)
19 define KernelPackage
/leds-gpio
/description
20 Kernel module for LEDs on GPIO lines
23 $(eval
$(call KernelPackage
,leds-gpio
))
25 LED_TRIGGER_DIR
=$(LINUX_DIR
)/drivers
/leds
/trigger
27 define KernelPackage
/ledtrig-activity
29 TITLE
:=LED Activity Trigger
30 KCONFIG
:=CONFIG_LEDS_TRIGGER_ACTIVITY
31 FILES
:=$(LED_TRIGGER_DIR
)/ledtrig-activity.ko
32 AUTOLOAD
:=$(call AutoLoad
,50,ledtrig-activity
)
35 define KernelPackage
/ledtrig-activity
/description
36 Kernel module that allows LEDs to blink based on system load
39 $(eval
$(call KernelPackage
,ledtrig-activity
))
41 define KernelPackage
/ledtrig-gpio
43 TITLE
:=LED GPIO Trigger
44 KCONFIG
:=CONFIG_LEDS_TRIGGER_GPIO
45 FILES
:=$(LED_TRIGGER_DIR
)/ledtrig-gpio.ko
46 AUTOLOAD
:=$(call AutoLoad
,50,ledtrig-gpio
)
49 define KernelPackage
/ledtrig-gpio
/description
50 Kernel module that allows LEDs to be controlled by gpio events
53 $(eval
$(call KernelPackage
,ledtrig-gpio
))
56 define KernelPackage
/ledtrig-transient
58 TITLE
:=LED Transient Trigger
59 KCONFIG
:=CONFIG_LEDS_TRIGGER_TRANSIENT
60 FILES
:=$(LED_TRIGGER_DIR
)/ledtrig-transient.ko
61 AUTOLOAD
:=$(call AutoLoad
,50,ledtrig-transient
,1)
64 define KernelPackage
/ledtrig-transient
/description
65 Kernel module that allows LEDs one time activation of a transient state.
68 $(eval
$(call KernelPackage
,ledtrig-transient
))
71 define KernelPackage
/ledtrig-oneshot
73 TITLE
:=LED One-Shot Trigger
74 KCONFIG
:=CONFIG_LEDS_TRIGGER_ONESHOT
75 FILES
:=$(LED_TRIGGER_DIR
)/ledtrig-oneshot.ko
76 AUTOLOAD
:=$(call AutoLoad
,50,ledtrig-oneshot
)
79 define KernelPackage
/ledtrig-oneshot
/description
80 Kernel module that allows LEDs to be triggered by sporadic events in
84 $(eval
$(call KernelPackage
,ledtrig-oneshot
))
87 define KernelPackage
/leds-apu
89 TITLE
:=PC Engines APU1 LED support
90 DEPENDS
:= @GPIO_SUPPORT @TARGET_x86
91 KCONFIG
:=CONFIG_LEDS_APU
92 FILES
:=$(LINUX_DIR
)/drivers
/leds
/leds-apu.ko
93 AUTOLOAD
:=$(call AutoLoad
,60,leds-apu
,1)
96 define KernelPackage
/leds-apu
/description
97 Driver for the PC Engines APU1 LEDs.
100 $(eval
$(call KernelPackage
,leds-apu
))
103 define KernelPackage
/leds-pca963x
104 SUBMENU
:=$(LEDS_MENU
)
105 TITLE
:=PCA963x LED support
106 DEPENDS
:=+kmod-i2c-core
107 KCONFIG
:=CONFIG_LEDS_PCA963X
108 FILES
:=$(LINUX_DIR
)/drivers
/leds
/leds-pca963x.ko
109 AUTOLOAD
:=$(call AutoLoad
,60,leds-pca963x
,1)
112 define KernelPackage
/leds-pca963x
/description
113 Driver for the NXP PCA963x I2C LED controllers.
116 $(eval
$(call KernelPackage
,leds-pca963x
))
119 define KernelPackage
/leds-pwm
120 SUBMENU
:=$(LEDS_MENU
)
121 TITLE
:=PWM driven LED Support
122 KCONFIG
:=CONFIG_LEDS_PWM
123 DEPENDS
:= @PWM_SUPPORT
124 FILES
:=$(LINUX_DIR
)/drivers
/leds
/leds-pwm.ko
125 AUTOLOAD
:=$(call AutoLoad
,60,leds-pwm
,1)
128 define KernelPackage
/leds-pwm
/description
129 This option enables support for pwm driven LEDs
132 $(eval
$(call KernelPackage
,leds-pwm
))