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.
11 define KernelPackage
/leds-alix
13 TITLE
:=PCengines ALIX LED support
15 KCONFIG
:=CONFIG_LEDS_ALIX2
16 FILES
:=$(LINUX_DIR
)/drivers
/leds
/leds-alix2.ko
17 AUTOLOAD
:=$(call AutoLoad
,50,leds-alix2
)
20 define KernelPackage
/leds-alix
/description
21 Kernel module for PCengines ALIX LEDs
24 $(eval
$(call KernelPackage
,leds-alix
))
27 define KernelPackage
/leds-gpio
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
)
36 define KernelPackage
/leds-gpio
/description
37 Kernel module for LEDs on GPIO lines
40 $(eval
$(call KernelPackage
,leds-gpio
))
43 define KernelPackage
/leds-net48xx
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
)
52 define KernelPackage
/leds-net48xx
/description
53 Kernel module for Soekris Net48xx LEDs
56 $(eval
$(call KernelPackage
,leds-net48xx
))
58 define KernelPackage
/leds-net5501
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
)
67 define KernelPackage
/leds-net5501
/description
68 Kernel module for Soekris Net5501 LEDs
71 $(eval
$(call KernelPackage
,leds-net5501
))
74 define KernelPackage
/leds-rb750
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
)
83 define KernelPackage
/leds-rb750
/description
84 Kernel module for the LEDs on the MikroTik RouterBOARD
750.
87 $(eval
$(call KernelPackage
,leds-rb750
))
90 define KernelPackage
/leds-wndr3700-usb
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
)
99 define KernelPackage
/leds-wndr3700-usb
/description
100 Kernel module for the USB LED on the NETGWR WNDR3700 board.
103 $(eval
$(call KernelPackage
,leds-wndr3700-usb
))
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
)
115 define KernelPackage
/leds-wrap
/description
116 Kernel module for PCengines WRAP LEDs
119 $(eval
$(call KernelPackage
,leds-wrap
))
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
)
130 define KernelPackage
/ledtrig-gpio
/description
131 Kernel module that allows LEDs to blink like heart beat
134 $(eval
$(call KernelPackage
,ledtrig-heartbeat
))
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
)
145 define KernelPackage
/ledtrig-gpio
/description
146 Kernel module that allows LEDs to be controlled by gpio events.
149 $(eval
$(call KernelPackage
,ledtrig-gpio
))
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
)
160 define KernelPackage
/ledtrig-morse
/description
161 Kernel module to show morse coded messages on LEDs.
164 $(eval
$(call KernelPackage
,ledtrig-morse
))
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
)
175 define KernelPackage
/ledtrig-netdev
/description
176 Kernel module to drive LEDs based on network activity.
179 $(eval
$(call KernelPackage
,ledtrig-netdev
))
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
)
191 define KernelPackage
/ledtrig-netfilter
/description
192 Kernel module to flash LED when a particular packets passing through your machine.
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
200 $(eval
$(call KernelPackage
,ledtrig-netfilter
))
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
)
212 define KernelPackage
/ledtrig-usbdev
/description
213 Kernel module to drive LEDs based on USB device presence
/activity.
216 $(eval
$(call KernelPackage
,ledtrig-usbdev
))