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-audio
43 TITLE
:=LED Audio Mute Trigger
44 KCONFIG
:=CONFIG_LEDS_TRIGGER_AUDIO
45 FILES
:=$(LED_TRIGGER_DIR
)/ledtrig-audio.ko
46 AUTOLOAD
:=$(call AutoLoad
,50,ledtrig-audio
)
49 define KernelPackage
/ledtrig-audio
/description
50 Kernel module that allows LEDs to be controlled by audio drivers
51 to follow audio mute and mic-mute changes.
54 $(eval
$(call KernelPackage
,ledtrig-audio
))
56 define KernelPackage
/ledtrig-gpio
58 TITLE
:=LED GPIO Trigger
59 KCONFIG
:=CONFIG_LEDS_TRIGGER_GPIO
60 FILES
:=$(LED_TRIGGER_DIR
)/ledtrig-gpio.ko
61 AUTOLOAD
:=$(call AutoLoad
,50,ledtrig-gpio
)
64 define KernelPackage
/ledtrig-gpio
/description
65 Kernel module that allows LEDs to be controlled by gpio events
68 $(eval
$(call KernelPackage
,ledtrig-gpio
))
71 define KernelPackage
/ledtrig-transient
73 TITLE
:=LED Transient Trigger
74 KCONFIG
:=CONFIG_LEDS_TRIGGER_TRANSIENT
75 FILES
:=$(LED_TRIGGER_DIR
)/ledtrig-transient.ko
76 AUTOLOAD
:=$(call AutoLoad
,50,ledtrig-transient
,1)
79 define KernelPackage
/ledtrig-transient
/description
80 Kernel module that allows LEDs one time activation of a transient state.
83 $(eval
$(call KernelPackage
,ledtrig-transient
))
86 define KernelPackage
/ledtrig-oneshot
88 TITLE
:=LED One-Shot Trigger
89 KCONFIG
:=CONFIG_LEDS_TRIGGER_ONESHOT
90 FILES
:=$(LED_TRIGGER_DIR
)/ledtrig-oneshot.ko
91 AUTOLOAD
:=$(call AutoLoad
,50,ledtrig-oneshot
)
94 define KernelPackage
/ledtrig-oneshot
/description
95 Kernel module that allows LEDs to be triggered by sporadic events in
99 $(eval
$(call KernelPackage
,ledtrig-oneshot
))
102 define KernelPackage
/leds-apu
103 SUBMENU
:=$(LEDS_MENU
)
104 TITLE
:=PC Engines APU1 LED support
105 DEPENDS
:= @GPIO_SUPPORT @TARGET_x86
106 KCONFIG
:=CONFIG_LEDS_APU
107 FILES
:=$(LINUX_DIR
)/drivers
/leds
/leds-apu.ko
108 AUTOLOAD
:=$(call AutoLoad
,60,leds-apu
,1)
111 define KernelPackage
/leds-apu
/description
112 Driver for the PC Engines APU1 LEDs.
115 $(eval
$(call KernelPackage
,leds-apu
))
118 define KernelPackage
/leds-pca963x
119 SUBMENU
:=$(LEDS_MENU
)
120 TITLE
:=PCA963x LED support
121 DEPENDS
:=+kmod-i2c-core
122 KCONFIG
:=CONFIG_LEDS_PCA963X
123 FILES
:=$(LINUX_DIR
)/drivers
/leds
/leds-pca963x.ko
124 AUTOLOAD
:=$(call AutoLoad
,60,leds-pca963x
,1)
127 define KernelPackage
/leds-pca963x
/description
128 Driver for the NXP PCA963x I2C LED controllers.
131 $(eval
$(call KernelPackage
,leds-pca963x
))
134 define KernelPackage
/leds-pwm
135 SUBMENU
:=$(LEDS_MENU
)
136 TITLE
:=PWM driven LED Support
137 KCONFIG
:=CONFIG_LEDS_PWM
138 DEPENDS
:= @PWM_SUPPORT
139 FILES
:=$(LINUX_DIR
)/drivers
/leds
/leds-pwm.ko
140 AUTOLOAD
:=$(call AutoLoad
,60,leds-pwm
,1)
143 define KernelPackage
/leds-pwm
/description
144 This option enables support for pwm driven LEDs
147 $(eval
$(call KernelPackage
,leds-pwm
))
149 define KernelPackage
/leds-uleds
150 SUBMENU
:=$(LEDS_MENU
)
151 TITLE
:=Userspace LEDs
152 KCONFIG
:=CONFIG_LEDS_USER
153 FILES
:=$(LINUX_DIR
)/drivers
/leds
/uleds.ko
154 AUTOLOAD
:=$(call AutoLoad
,60,leds-uleds
,1)
157 define KernelPackage
/leds-uleds
/description
158 This option enables support for userspace LEDs.
161 $(eval
$(call KernelPackage
,leds-uleds
))