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-heartbeat
29 TITLE:=LED Heartbeat Trigger
30 KCONFIG:=CONFIG_LEDS_TRIGGER_HEARTBEAT
31 FILES:=$(LED_TRIGGER_DIR)/ledtrig-heartbeat.ko
32 AUTOLOAD:=$(call AutoLoad,50,ledtrig-heartbeat)
35 define KernelPackage/ledtrig-gpio/description
36 Kernel module that allows LEDs to blink like heart beat
39 $(eval $(call KernelPackage,ledtrig-heartbeat))
42 define KernelPackage/ledtrig-gpio
44 TITLE:=LED GPIO Trigger
45 KCONFIG:=CONFIG_LEDS_TRIGGER_GPIO
46 FILES:=$(LED_TRIGGER_DIR)/ledtrig-gpio.ko
47 AUTOLOAD:=$(call AutoLoad,50,ledtrig-gpio)
50 define KernelPackage/ledtrig-gpio/description
51 Kernel module that allows LEDs to be controlled by gpio events
54 $(eval $(call KernelPackage,ledtrig-gpio))
57 define KernelPackage/ledtrig-morse
59 TITLE:=LED Morse Trigger
60 KCONFIG:=CONFIG_LEDS_TRIGGER_MORSE
61 FILES:=$(LINUX_DIR)/drivers/leds/ledtrig-morse.ko
62 AUTOLOAD:=$(call AutoLoad,50,ledtrig-morse)
65 define KernelPackage/ledtrig-morse/description
66 Kernel module to show morse coded messages on LEDs
69 $(eval $(call KernelPackage,ledtrig-morse))
72 define KernelPackage/ledtrig-netdev
74 TITLE:=LED NETDEV Trigger
75 KCONFIG:=CONFIG_LEDS_TRIGGER_NETDEV
76 FILES:=$(LINUX_DIR)/drivers/leds/ledtrig-netdev.ko
77 AUTOLOAD:=$(call AutoLoad,50,ledtrig-netdev)
80 define KernelPackage/ledtrig-netdev/description
81 Kernel module to drive LEDs based on network activity
84 $(eval $(call KernelPackage,ledtrig-netdev))
87 define KernelPackage/ledtrig-netfilter
89 TITLE:=LED NetFilter Trigger
90 DEPENDS:=kmod-ipt-core
91 KCONFIG:=CONFIG_NETFILTER_XT_TARGET_LED
92 FILES:=$(LINUX_DIR)/net/netfilter/xt_LED.ko
93 AUTOLOAD:=$(call AutoLoad,50,xt_LED)
96 define KernelPackage/ledtrig-netfilter/description
97 Kernel module to flash LED when a particular packets passing through your machine.
99 For example to create an LED trigger for incoming SSH traffic:
100 iptables -A INPUT -p tcp --dport 22 -j LED --led-trigger-id ssh --led-delay 1000
101 Then attach the new trigger to an LED on your system:
102 echo netfilter-ssh > /sys/class/leds/<ledname>/trigger
105 $(eval $(call KernelPackage,ledtrig-netfilter))
108 define KernelPackage/ledtrig-usbdev
109 SUBMENU:=$(LEDS_MENU)
110 TITLE:=LED USB device Trigger
111 DEPENDS:=@USB_SUPPORT kmod-usb-core
112 KCONFIG:=CONFIG_LEDS_TRIGGER_USBDEV
113 FILES:=$(LINUX_DIR)/drivers/leds/ledtrig-usbdev.ko
114 AUTOLOAD:=$(call AutoLoad,50,ledtrig-usbdev)
117 define KernelPackage/ledtrig-usbdev/description
118 Kernel module to drive LEDs based on USB device presence/activity
121 $(eval $(call KernelPackage,ledtrig-usbdev))
124 define KernelPackage/ledtrig-default-on
125 SUBMENU:=$(LEDS_MENU)
126 TITLE:=LED Default ON Trigger
127 KCONFIG:=CONFIG_LEDS_TRIGGER_DEFAULT_ON
128 FILES:=$(LED_TRIGGER_DIR)/ledtrig-default-on.ko
129 AUTOLOAD:=$(call AutoLoad,50,ledtrig-default-on,1)
132 define KernelPackage/ledtrig-default-on/description
133 Kernel module that allows LEDs to be initialised in the ON state
136 $(eval $(call KernelPackage,ledtrig-default-on))
139 define KernelPackage/ledtrig-timer
140 SUBMENU:=$(LEDS_MENU)
141 TITLE:=LED Timer Trigger
142 KCONFIG:=CONFIG_LEDS_TRIGGER_TIMER
143 FILES:=$(LED_TRIGGER_DIR)/ledtrig-timer.ko
144 AUTOLOAD:=$(call AutoLoad,50,ledtrig-timer,1)
147 define KernelPackage/ledtrig-timer/description
148 Kernel module that allows LEDs to be controlled by a programmable timer
152 $(eval $(call KernelPackage,ledtrig-timer))
155 define KernelPackage/ledtrig-transient
156 SUBMENU:=$(LEDS_MENU)
157 TITLE:=LED Transient Trigger
158 KCONFIG:=CONFIG_LEDS_TRIGGER_TRANSIENT
159 FILES:=$(LED_TRIGGER_DIR)/ledtrig-transient.ko
160 AUTOLOAD:=$(call AutoLoad,50,ledtrig-transient,1)
163 define KernelPackage/ledtrig-transient/description
164 Kernel module that allows LEDs one time activation of a transient state.
167 $(eval $(call KernelPackage,ledtrig-transient))
170 define KernelPackage/ledtrig-oneshot
171 SUBMENU:=$(LEDS_MENU)
172 TITLE:=LED One-Shot Trigger
173 KCONFIG:=CONFIG_LEDS_TRIGGER_ONESHOT
174 FILES:=$(LED_TRIGGER_DIR)/ledtrig-oneshot.ko
175 AUTOLOAD:=$(call AutoLoad,50,ledtrig-oneshot)
178 define KernelPackage/ledtrig-oneshot/description
179 Kernel module that allows LEDs to be triggered by sporadic events in
183 $(eval $(call KernelPackage,ledtrig-oneshot))
186 define KernelPackage/leds-pca963x
187 SUBMENU:=$(LEDS_MENU)
188 TITLE:=PCA963x LED support
189 DEPENDS:=+kmod-i2c-core
190 KCONFIG:=CONFIG_LEDS_PCA963X
191 FILES:=$(LINUX_DIR)/drivers/leds/leds-pca963x.ko
192 AUTOLOAD:=$(call AutoLoad,60,leds-pca963x,1)
195 define KernelPackage/leds-pca963x/description
196 Driver for the NXP PCA963x I2C LED controllers.
199 $(eval $(call KernelPackage,leds-pca963x))
202 define KernelPackage/leds-tlc591xx
203 SUBMENU:=$(LEDS_MENU)
204 TITLE:=TLC591xx LED support
205 DEPENDS:=@TARGET_mvebu +kmod-i2c-core +kmod-regmap
206 KCONFIG:=CONFIG_LEDS_TLC591XX
207 FILES:=$(LINUX_DIR)/drivers/leds/leds-tlc591xx.ko
208 AUTOLOAD:=$(call AutoLoad,60,leds-tlc591xx,1)
211 define KernelPackage/leds-tlc591xx/description
212 Kernel module for LEDs on TLC591xx
215 $(eval $(call KernelPackage,leds-tlc591xx))