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-pca963x
89 TITLE
:=PCA963x LED support
90 DEPENDS
:=+kmod-i2c-core
91 KCONFIG
:=CONFIG_LEDS_PCA963X
92 FILES
:=$(LINUX_DIR
)/drivers
/leds
/leds-pca963x.ko
93 AUTOLOAD
:=$(call AutoLoad
,60,leds-pca963x
,1)
96 define KernelPackage
/leds-pca963x
/description
97 Driver for the NXP PCA963x I2C LED controllers.
100 $(eval
$(call KernelPackage
,leds-pca963x
))
103 define KernelPackage
/leds-pwm
104 SUBMENU
:=$(LEDS_MENU
)
105 TITLE
:=PWM driven LED Support
106 KCONFIG
:=CONFIG_LEDS_PWM
107 DEPENDS
:= @PWM_SUPPORT
108 FILES
:=$(LINUX_DIR
)/drivers
/leds
/leds-pwm.ko
109 AUTOLOAD
:=$(call AutoLoad
,60,leds-pwm
,1)
112 define KernelPackage
/leds-pwm
/description
113 This option enables support for pwm driven LEDs
116 $(eval
$(call KernelPackage
,leds-pwm
))