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