source: trunk/package/kernel/modules/leds.mk @ 28356

Last change on this file since 28356 was 28356, checked in by cshore, 5 years ago

Add patch for linux-3.0 as well.

Fix typo from previous submission with input-keys-polled.
Philip Prindeville - 2011-10-03 01:44:55

File size: 5.6 KB
Line 
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
8LEDS_MENU:=LED modules
9
10
11ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),lt,2.6.39)),1)
12define 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)
19endef
20
21define KernelPackage/leds-alix/description
22 Kernel module for PCengines ALIX LEDs
23endef
24
25$(eval $(call KernelPackage,leds-alix))
26endif
27
28
29define 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)
36endef
37
38define KernelPackage/leds-gpio/description
39 Kernel module for LEDs on GPIO lines
40endef
41
42$(eval $(call KernelPackage,leds-gpio))
43
44
45define 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)
52endef
53
54define KernelPackage/leds-net48xx/description
55 Kernel module for Soekris Net48xx LEDs
56endef
57
58$(eval $(call KernelPackage,leds-net48xx))
59
60define 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)
67endef
68
69define KernelPackage/leds-net5501/description
70 Kernel module for Soekris Net5501 LEDs
71endef
72
73$(eval $(call KernelPackage,leds-net5501))
74
75
76define 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)
83endef
84
85define KernelPackage/leds-rb750/description
86 Kernel module for the LEDs on the MikroTik RouterBOARD 750.
87endef
88
89$(eval $(call KernelPackage,leds-rb750))
90
91
92define 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)
99endef
100
101define KernelPackage/leds-wndr3700-usb/description
102 Kernel module for the USB LED on the NETGWR WNDR3700 board.
103endef
104
105$(eval $(call KernelPackage,leds-wndr3700-usb))
106
107
108define 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)
115endef
116
117define KernelPackage/leds-wrap/description
118 Kernel module for PCengines WRAP LEDs
119endef
120
121$(eval $(call KernelPackage,leds-wrap))
122
123
124define 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)
130endef
131
132define KernelPackage/ledtrig-gpio/description
133 Kernel module that allows LEDs to blink like heart beat
134endef
135
136$(eval $(call KernelPackage,ledtrig-heartbeat))
137
138
139define 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)
145endef
146
147define KernelPackage/ledtrig-gpio/description
148 Kernel module that allows LEDs to be controlled by gpio events.
149endef
150
151$(eval $(call KernelPackage,ledtrig-gpio))
152
153
154define 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)
160endef
161
162define KernelPackage/ledtrig-morse/description
163 Kernel module to show morse coded messages on LEDs.
164endef
165
166$(eval $(call KernelPackage,ledtrig-morse))
167
168
169define 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)
175endef
176
177define KernelPackage/ledtrig-netdev/description
178 Kernel module to drive LEDs based on network activity.
179endef
180
181$(eval $(call KernelPackage,ledtrig-netdev))
182
183
184define 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)
191endef
192
193define 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
200endef
201
202$(eval $(call KernelPackage,ledtrig-netfilter))
203
204
205define 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)
212endef
213
214define KernelPackage/ledtrig-usbdev/description
215 Kernel module to drive LEDs based on USB device presence/activity.
216endef
217
218$(eval $(call KernelPackage,ledtrig-usbdev))
Note: See TracBrowser for help on using the repository browser.