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 ifeq ($(strip $(call CompareKernelPatchVer
,$(KERNEL_PATCHVER
),lt
,2.6.39)),1)
12 define KernelPackage
/leds-alix
14 TITLE
:=PCengines ALIX LED support
16 KCONFIG
:=CONFIG_LEDS_ALIX2
17 FILES
:=$(LINUX_DIR
)/drivers
/leds
/leds-alix2.ko
18 AUTOLOAD
:=$(call AutoLoad
,50,leds-alix2
)
21 define KernelPackage
/leds-alix
/description
22 Kernel module for PCengines ALIX LEDs
25 $(eval
$(call KernelPackage
,leds-alix
))
29 define KernelPackage
/leds-gpio
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
)
38 define KernelPackage
/leds-gpio
/description
39 Kernel module for LEDs on GPIO lines
42 $(eval
$(call KernelPackage
,leds-gpio
))
45 define KernelPackage
/leds-net48xx
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
)
54 define KernelPackage
/leds-net48xx
/description
55 Kernel module for Soekris Net48xx LEDs
58 $(eval
$(call KernelPackage
,leds-net48xx
))
60 define KernelPackage
/leds-net5501
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
)
69 define KernelPackage
/leds-net5501
/description
70 Kernel module for Soekris Net5501 LEDs
73 $(eval
$(call KernelPackage
,leds-net5501
))
76 define KernelPackage
/leds-rb750
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
)
85 define KernelPackage
/leds-rb750
/description
86 Kernel module for the LEDs on the MikroTik RouterBOARD
750.
89 $(eval
$(call KernelPackage
,leds-rb750
))
92 define KernelPackage
/leds-wndr3700-usb
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
)
101 define KernelPackage
/leds-wndr3700-usb
/description
102 Kernel module for the USB LED on the NETGWR WNDR3700 board.
105 $(eval
$(call KernelPackage
,leds-wndr3700-usb
))
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
)
117 define KernelPackage
/leds-wrap
/description
118 Kernel module for PCengines WRAP LEDs
121 $(eval
$(call KernelPackage
,leds-wrap
))
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
)
132 define KernelPackage
/ledtrig-gpio
/description
133 Kernel module that allows LEDs to blink like heart beat
136 $(eval
$(call KernelPackage
,ledtrig-heartbeat
))
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
)
147 define KernelPackage
/ledtrig-gpio
/description
148 Kernel module that allows LEDs to be controlled by gpio events.
151 $(eval
$(call KernelPackage
,ledtrig-gpio
))
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
)
162 define KernelPackage
/ledtrig-morse
/description
163 Kernel module to show morse coded messages on LEDs.
166 $(eval
$(call KernelPackage
,ledtrig-morse
))
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
)
177 define KernelPackage
/ledtrig-netdev
/description
178 Kernel module to drive LEDs based on network activity.
181 $(eval
$(call KernelPackage
,ledtrig-netdev
))
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
)
193 define KernelPackage
/ledtrig-netfilter
/description
194 Kernel module to flash LED when a particular packets passing through your machine.
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
202 $(eval
$(call KernelPackage
,ledtrig-netfilter
))
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
)
214 define KernelPackage
/ledtrig-usbdev
/description
215 Kernel module to drive LEDs based on USB device presence
/activity.
218 $(eval
$(call KernelPackage
,ledtrig-usbdev
))