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-gpio
13 TITLE
:=GPIO LED support
14 DEPENDS
:= @GPIO_SUPPORT
15 KCONFIG
:=CONFIG_LEDS_GPIO
16 FILES
:=$(LINUX_DIR
)/drivers
/leds
/leds-gpio.ko
17 AUTOLOAD
:=$(call AutoLoad
,60,leds-gpio
)
20 define KernelPackage
/leds-gpio
/description
21 Kernel module for LEDs on GPIO lines
24 $(eval
$(call KernelPackage
,leds-gpio
))
27 define KernelPackage
/leds-net48xx
29 TITLE
:=Soekris Net48xx LED support
30 DEPENDS
:=@TARGET_x86
+kmod-gpio-scx200
31 KCONFIG
:=CONFIG_LEDS_NET48XX
32 FILES
:=$(LINUX_DIR
)/drivers
/leds
/leds-net48xx.ko
33 AUTOLOAD
:=$(call AutoLoad
,50,leds-net48xx
)
36 define KernelPackage
/leds-net48xx
/description
37 Kernel module for Soekris Net48xx LEDs
40 $(eval
$(call KernelPackage
,leds-net48xx
))
43 define KernelPackage
/leds-rb750
45 TITLE
:=RouterBOARD
750 LED support
46 DEPENDS
:=@TARGET_ar71xx
47 KCONFIG
:=CONFIG_LEDS_RB750
48 FILES
:=$(LINUX_DIR
)/drivers
/leds
/leds-rb750.ko
49 AUTOLOAD
:=$(call AutoLoad
,60,leds-rb750
)
52 define KernelPackage
/leds-rb750
/description
53 Kernel module for the LEDs on the MikroTik RouterBOARD
750.
56 $(eval
$(call KernelPackage
,leds-rb750
))
59 define KernelPackage
/leds-wndr3700-usb
61 TITLE
:=WNDR3700 USB LED support
62 DEPENDS
:=@TARGET_ar71xx
63 KCONFIG
:=CONFIG_LEDS_WNDR3700_USB
64 FILES
:=$(LINUX_DIR
)/drivers
/leds
/leds-wndr3700-usb.ko
65 AUTOLOAD
:=$(call AutoLoad
,60,leds-wndr3700-usb
)
68 define KernelPackage
/leds-wndr3700-usb
/description
69 Kernel module for the USB LED on the NETGWR WNDR3700 board.
72 $(eval
$(call KernelPackage
,leds-wndr3700-usb
))
75 define KernelPackage
/leds-wrap
77 TITLE
:=PCengines WRAP LED support
78 DEPENDS
:=@TARGET_x86
+kmod-gpio-scx200
79 KCONFIG
:=CONFIG_LEDS_WRAP
80 FILES
:=$(LINUX_DIR
)/drivers
/leds
/leds-wrap.ko
81 AUTOLOAD
:=$(call AutoLoad
,50,leds-wrap
)
84 define KernelPackage
/leds-wrap
/description
85 Kernel module for PCengines WRAP LEDs
88 $(eval
$(call KernelPackage
,leds-wrap
))
91 define KernelPackage
/ledtrig-heartbeat
93 TITLE
:=LED Heartbeat Trigger
94 KCONFIG
:=CONFIG_LEDS_TRIGGER_HEARTBEAT
95 FILES
:=$(LINUX_DIR
)/drivers
/leds
/ledtrig-heartbeat.ko
96 AUTOLOAD
:=$(call AutoLoad
,50,ledtrig-heartbeat
)
99 define KernelPackage
/ledtrig-gpio
/description
100 Kernel module that allows LEDs to blink like heart beat
103 $(eval
$(call KernelPackage
,ledtrig-heartbeat
))
106 define KernelPackage
/ledtrig-gpio
107 SUBMENU
:=$(LEDS_MENU
)
108 TITLE
:=LED GPIO Trigger
109 KCONFIG
:=CONFIG_LEDS_TRIGGER_GPIO
110 FILES
:=$(LINUX_DIR
)/drivers
/leds
/ledtrig-gpio.ko
111 AUTOLOAD
:=$(call AutoLoad
,50,ledtrig-gpio
)
114 define KernelPackage
/ledtrig-gpio
/description
115 Kernel module that allows LEDs to be controlled by gpio events.
118 $(eval
$(call KernelPackage
,ledtrig-gpio
))
121 define KernelPackage
/ledtrig-morse
122 SUBMENU
:=$(LEDS_MENU
)
123 TITLE
:=LED Morse Trigger
124 KCONFIG
:=CONFIG_LEDS_TRIGGER_MORSE
125 FILES
:=$(LINUX_DIR
)/drivers
/leds
/ledtrig-morse.ko
126 AUTOLOAD
:=$(call AutoLoad
,50,ledtrig-morse
)
129 define KernelPackage
/ledtrig-morse
/description
130 Kernel module to show morse coded messages on LEDs.
133 $(eval
$(call KernelPackage
,ledtrig-morse
))
136 define KernelPackage
/ledtrig-netdev
137 SUBMENU
:=$(LEDS_MENU
)
138 TITLE
:=LED NETDEV Trigger
139 KCONFIG
:=CONFIG_LEDS_TRIGGER_NETDEV
140 FILES
:=$(LINUX_DIR
)/drivers
/leds
/ledtrig-netdev.ko
141 AUTOLOAD
:=$(call AutoLoad
,50,ledtrig-netdev
)
144 define KernelPackage
/ledtrig-netdev
/description
145 Kernel module to drive LEDs based on network activity.
148 $(eval
$(call KernelPackage
,ledtrig-netdev
))
151 define KernelPackage
/ledtrig-netfilter
152 SUBMENU
:=$(LEDS_MENU
)
153 TITLE
:=LED NetFilter Trigger
154 DEPENDS
:=kmod-ipt-core
155 KCONFIG
:=CONFIG_NETFILTER_XT_TARGET_LED
156 FILES
:=$(LINUX_DIR
)/net
/netfilter
/xt_LED.ko
157 AUTOLOAD
:=$(call AutoLoad
,50,xt_LED
)
160 define KernelPackage
/ledtrig-netfilter
/description
161 Kernel module to flash LED when a particular packets passing through your machine.
163 For example to create an LED trigger for incoming SSH traffic
:
164 iptables
-A INPUT
-p tcp
--dport
22 -j LED
--led-trigger-id ssh
--led-delay
1000
165 Then attach the new trigger to an LED on your system
:
166 echo netfilter-ssh
> /sys
/class
/leds
/<ledname
>/trigger
169 $(eval
$(call KernelPackage
,ledtrig-netfilter
))
172 define KernelPackage
/ledtrig-usbdev
173 SUBMENU
:=$(LEDS_MENU
)
174 TITLE
:=LED USB device Trigger
175 DEPENDS
:=@USB_SUPPORT
+kmod-usb-core
176 KCONFIG
:=CONFIG_LEDS_TRIGGER_USBDEV
177 FILES
:=$(LINUX_DIR
)/drivers
/leds
/ledtrig-usbdev.ko
178 AUTOLOAD
:=$(call AutoLoad
,50,ledtrig-usbdev
)
181 define KernelPackage
/ledtrig-usbdev
/description
182 Kernel module to drive LEDs based on USB device presence
/activity.
185 $(eval
$(call KernelPackage
,ledtrig-usbdev
))