[package] uci: update to latest git rev 7289b2d69aaffa9299b47aaaa0da1e9969ace6c1
[openwrt.git] / package / kernel / modules / leds.mk
1 #
2 # Copyright (C) 2006-2011 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 LEDS_MENU:=LED modules
9
10
11 ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),lt,2.6.39)),1)
12 define KernelPackage/leds-alix
13 SUBMENU:=$(LEDS_MENU)
14 TITLE:=PCengines ALIX LED support
15 DEPENDS:=@TARGET_x86
16 KCONFIG:=CONFIG_LEDS_ALIX2
17 FILES:=$(LINUX_DIR)/drivers/leds/leds-alix2.ko
18 AUTOLOAD:=$(call AutoLoad,50,leds-alix2)
19 endef
20
21 define KernelPackage/leds-alix/description
22 Kernel module for PCengines ALIX LEDs
23 endef
24
25 $(eval $(call KernelPackage,leds-alix))
26 endif
27
28
29 define KernelPackage/leds-gpio
30 SUBMENU:=$(LEDS_MENU)
31 TITLE:=GPIO LED support
32 DEPENDS:= @GPIO_SUPPORT
33 KCONFIG:=CONFIG_LEDS_GPIO
34 FILES:=$(LINUX_DIR)/drivers/leds/leds-gpio.ko
35 AUTOLOAD:=$(call AutoLoad,60,leds-gpio)
36 endef
37
38 define KernelPackage/leds-gpio/description
39 Kernel module for LEDs on GPIO lines
40 endef
41
42 $(eval $(call KernelPackage,leds-gpio))
43
44
45 define KernelPackage/leds-net48xx
46 SUBMENU:=$(LEDS_MENU)
47 TITLE:=Soekris Net48xx LED support
48 DEPENDS:=@TARGET_x86 +kmod-gpio-scx200
49 KCONFIG:=CONFIG_LEDS_NET48XX
50 FILES:=$(LINUX_DIR)/drivers/leds/leds-net48xx.ko
51 AUTOLOAD:=$(call AutoLoad,50,leds-net48xx)
52 endef
53
54 define KernelPackage/leds-net48xx/description
55 Kernel module for Soekris Net48xx LEDs
56 endef
57
58 $(eval $(call KernelPackage,leds-net48xx))
59
60 define KernelPackage/leds-net5501
61 SUBMENU:=$(LEDS_MENU)
62 TITLE:=Soekris Net5501 LED support
63 DEPENDS:=@TARGET_x86 +kmod-gpio-cs5535 +kmod-leds-gpio
64 KCONFIG:=CONFIG_LEDS_NET5501
65 FILES:=$(LINUX_DIR)/drivers/leds/leds-net5501.ko
66 AUTOLOAD:=$(call AutoLoad,50,leds-net5501)
67 endef
68
69 define KernelPackage/leds-net5501/description
70 Kernel module for Soekris Net5501 LEDs
71 endef
72
73 $(eval $(call KernelPackage,leds-net5501))
74
75
76 define KernelPackage/leds-rb750
77 SUBMENU:=$(LEDS_MENU)
78 TITLE:=RouterBOARD 750 LED support
79 DEPENDS:=@TARGET_ar71xx
80 KCONFIG:=CONFIG_LEDS_RB750
81 FILES:=$(LINUX_DIR)/drivers/leds/leds-rb750.ko
82 AUTOLOAD:=$(call AutoLoad,60,leds-rb750)
83 endef
84
85 define KernelPackage/leds-rb750/description
86 Kernel module for the LEDs on the MikroTik RouterBOARD 750.
87 endef
88
89 $(eval $(call KernelPackage,leds-rb750))
90
91
92 define KernelPackage/leds-wndr3700-usb
93 SUBMENU:=$(LEDS_MENU)
94 TITLE:=WNDR3700 USB LED support
95 DEPENDS:=@TARGET_ar71xx
96 KCONFIG:=CONFIG_LEDS_WNDR3700_USB
97 FILES:=$(LINUX_DIR)/drivers/leds/leds-wndr3700-usb.ko
98 AUTOLOAD:=$(call AutoLoad,60,leds-wndr3700-usb)
99 endef
100
101 define KernelPackage/leds-wndr3700-usb/description
102 Kernel module for the USB LED on the NETGWR WNDR3700 board.
103 endef
104
105 $(eval $(call KernelPackage,leds-wndr3700-usb))
106
107
108 define KernelPackage/leds-wrap
109 SUBMENU:=$(LEDS_MENU)
110 TITLE:=PCengines WRAP LED support
111 DEPENDS:=@TARGET_x86 +kmod-gpio-scx200
112 KCONFIG:=CONFIG_LEDS_WRAP
113 FILES:=$(LINUX_DIR)/drivers/leds/leds-wrap.ko
114 AUTOLOAD:=$(call AutoLoad,50,leds-wrap)
115 endef
116
117 define KernelPackage/leds-wrap/description
118 Kernel module for PCengines WRAP LEDs
119 endef
120
121 $(eval $(call KernelPackage,leds-wrap))
122
123
124 define KernelPackage/ledtrig-heartbeat
125 SUBMENU:=$(LEDS_MENU)
126 TITLE:=LED Heartbeat Trigger
127 KCONFIG:=CONFIG_LEDS_TRIGGER_HEARTBEAT
128 FILES:=$(LINUX_DIR)/drivers/leds/ledtrig-heartbeat.ko
129 AUTOLOAD:=$(call AutoLoad,50,ledtrig-heartbeat)
130 endef
131
132 define KernelPackage/ledtrig-gpio/description
133 Kernel module that allows LEDs to blink like heart beat
134 endef
135
136 $(eval $(call KernelPackage,ledtrig-heartbeat))
137
138
139 define KernelPackage/ledtrig-gpio
140 SUBMENU:=$(LEDS_MENU)
141 TITLE:=LED GPIO Trigger
142 KCONFIG:=CONFIG_LEDS_TRIGGER_GPIO
143 FILES:=$(LINUX_DIR)/drivers/leds/ledtrig-gpio.ko
144 AUTOLOAD:=$(call AutoLoad,50,ledtrig-gpio)
145 endef
146
147 define KernelPackage/ledtrig-gpio/description
148 Kernel module that allows LEDs to be controlled by gpio events.
149 endef
150
151 $(eval $(call KernelPackage,ledtrig-gpio))
152
153
154 define KernelPackage/ledtrig-morse
155 SUBMENU:=$(LEDS_MENU)
156 TITLE:=LED Morse Trigger
157 KCONFIG:=CONFIG_LEDS_TRIGGER_MORSE
158 FILES:=$(LINUX_DIR)/drivers/leds/ledtrig-morse.ko
159 AUTOLOAD:=$(call AutoLoad,50,ledtrig-morse)
160 endef
161
162 define KernelPackage/ledtrig-morse/description
163 Kernel module to show morse coded messages on LEDs.
164 endef
165
166 $(eval $(call KernelPackage,ledtrig-morse))
167
168
169 define KernelPackage/ledtrig-netdev
170 SUBMENU:=$(LEDS_MENU)
171 TITLE:=LED NETDEV Trigger
172 KCONFIG:=CONFIG_LEDS_TRIGGER_NETDEV
173 FILES:=$(LINUX_DIR)/drivers/leds/ledtrig-netdev.ko
174 AUTOLOAD:=$(call AutoLoad,50,ledtrig-netdev)
175 endef
176
177 define KernelPackage/ledtrig-netdev/description
178 Kernel module to drive LEDs based on network activity.
179 endef
180
181 $(eval $(call KernelPackage,ledtrig-netdev))
182
183
184 define KernelPackage/ledtrig-netfilter
185 SUBMENU:=$(LEDS_MENU)
186 TITLE:=LED NetFilter Trigger
187 DEPENDS:=kmod-ipt-core
188 KCONFIG:=CONFIG_NETFILTER_XT_TARGET_LED
189 FILES:=$(LINUX_DIR)/net/netfilter/xt_LED.ko
190 AUTOLOAD:=$(call AutoLoad,50,xt_LED)
191 endef
192
193 define KernelPackage/ledtrig-netfilter/description
194 Kernel module to flash LED when a particular packets passing through your machine.
195
196 For example to create an LED trigger for incoming SSH traffic:
197 iptables -A INPUT -p tcp --dport 22 -j LED --led-trigger-id ssh --led-delay 1000
198 Then attach the new trigger to an LED on your system:
199 echo netfilter-ssh > /sys/class/leds/<ledname>/trigger
200 endef
201
202 $(eval $(call KernelPackage,ledtrig-netfilter))
203
204
205 define KernelPackage/ledtrig-usbdev
206 SUBMENU:=$(LEDS_MENU)
207 TITLE:=LED USB device Trigger
208 DEPENDS:=@USB_SUPPORT +kmod-usb-core
209 KCONFIG:=CONFIG_LEDS_TRIGGER_USBDEV
210 FILES:=$(LINUX_DIR)/drivers/leds/ledtrig-usbdev.ko
211 AUTOLOAD:=$(call AutoLoad,50,ledtrig-usbdev)
212 endef
213
214 define KernelPackage/ledtrig-usbdev/description
215 Kernel module to drive LEDs based on USB device presence/activity.
216 endef
217
218 $(eval $(call KernelPackage,ledtrig-usbdev))
This page took 0.047018 seconds and 5 git commands to generate.