[kernel] add lm92 kernel module
[openwrt/svn-archive/archive.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-gpio
12 SUBMENU:=$(LEDS_MENU)
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)
18 endef
19
20 define KernelPackage/leds-gpio/description
21 Kernel module for LEDs on GPIO lines
22 endef
23
24 $(eval $(call KernelPackage,leds-gpio))
25
26
27 define KernelPackage/ledtrig-heartbeat
28 SUBMENU:=$(LEDS_MENU)
29 TITLE:=LED Heartbeat Trigger
30 KCONFIG:=CONFIG_LEDS_TRIGGER_HEARTBEAT
31 FILES:=$(LINUX_DIR)/drivers/leds/ledtrig-heartbeat.ko
32 AUTOLOAD:=$(call AutoLoad,50,ledtrig-heartbeat)
33 endef
34
35 define KernelPackage/ledtrig-gpio/description
36 Kernel module that allows LEDs to blink like heart beat
37 endef
38
39 $(eval $(call KernelPackage,ledtrig-heartbeat))
40
41
42 define KernelPackage/ledtrig-gpio
43 SUBMENU:=$(LEDS_MENU)
44 TITLE:=LED GPIO Trigger
45 KCONFIG:=CONFIG_LEDS_TRIGGER_GPIO
46 FILES:=$(LINUX_DIR)/drivers/leds/ledtrig-gpio.ko
47 AUTOLOAD:=$(call AutoLoad,50,ledtrig-gpio)
48 endef
49
50 define KernelPackage/ledtrig-gpio/description
51 Kernel module that allows LEDs to be controlled by gpio events.
52 endef
53
54 $(eval $(call KernelPackage,ledtrig-gpio))
55
56
57 define KernelPackage/ledtrig-morse
58 SUBMENU:=$(LEDS_MENU)
59 TITLE:=LED Morse Trigger
60 KCONFIG:=CONFIG_LEDS_TRIGGER_MORSE
61 FILES:=$(LINUX_DIR)/drivers/leds/ledtrig-morse.ko
62 AUTOLOAD:=$(call AutoLoad,50,ledtrig-morse)
63 endef
64
65 define KernelPackage/ledtrig-morse/description
66 Kernel module to show morse coded messages on LEDs.
67 endef
68
69 $(eval $(call KernelPackage,ledtrig-morse))
70
71
72 define KernelPackage/ledtrig-netdev
73 SUBMENU:=$(LEDS_MENU)
74 TITLE:=LED NETDEV Trigger
75 KCONFIG:=CONFIG_LEDS_TRIGGER_NETDEV
76 FILES:=$(LINUX_DIR)/drivers/leds/ledtrig-netdev.ko
77 AUTOLOAD:=$(call AutoLoad,50,ledtrig-netdev)
78 endef
79
80 define KernelPackage/ledtrig-netdev/description
81 Kernel module to drive LEDs based on network activity.
82 endef
83
84 $(eval $(call KernelPackage,ledtrig-netdev))
85
86
87 define KernelPackage/ledtrig-netfilter
88 SUBMENU:=$(LEDS_MENU)
89 TITLE:=LED NetFilter Trigger
90 DEPENDS:=kmod-ipt-core
91 KCONFIG:=CONFIG_NETFILTER_XT_TARGET_LED
92 FILES:=$(LINUX_DIR)/net/netfilter/xt_LED.ko
93 AUTOLOAD:=$(call AutoLoad,50,xt_LED)
94 endef
95
96 define KernelPackage/ledtrig-netfilter/description
97 Kernel module to flash LED when a particular packets passing through your machine.
98
99 For example to create an LED trigger for incoming SSH traffic:
100 iptables -A INPUT -p tcp --dport 22 -j LED --led-trigger-id ssh --led-delay 1000
101 Then attach the new trigger to an LED on your system:
102 echo netfilter-ssh > /sys/class/leds/<ledname>/trigger
103 endef
104
105 $(eval $(call KernelPackage,ledtrig-netfilter))
106
107
108 define KernelPackage/ledtrig-usbdev
109 SUBMENU:=$(LEDS_MENU)
110 TITLE:=LED USB device Trigger
111 DEPENDS:=@USB_SUPPORT kmod-usb-core
112 KCONFIG:=CONFIG_LEDS_TRIGGER_USBDEV
113 FILES:=$(LINUX_DIR)/drivers/leds/ledtrig-usbdev.ko
114 AUTOLOAD:=$(call AutoLoad,50,ledtrig-usbdev)
115 endef
116
117 define KernelPackage/ledtrig-usbdev/description
118 Kernel module to drive LEDs based on USB device presence/activity.
119 endef
120
121 $(eval $(call KernelPackage,ledtrig-usbdev))
122
123
124 define KernelPackage/ledtrig-default-on
125 SUBMENU:=$(LEDS_MENU)
126 TITLE:=LED Default ON Trigger
127 KCONFIG:=CONFIG_LEDS_TRIGGER_DEFAULT_ON
128 FILES:=$(LINUX_DIR)/drivers/leds/ledtrig-default-on.ko
129 AUTOLOAD:=$(call AutoLoad,50,ledtrig-default-on)
130 endef
131
132 define KernelPackage/ledtrig-default-on/description
133 Kernel module that allows LEDs to be initialised in the ON state.
134 endef
135
136 $(eval $(call KernelPackage,ledtrig-default-on))
137
138
139 define KernelPackage/ledtrig-timer
140 SUBMENU:=$(LEDS_MENU)
141 TITLE:=LED Timer Trigger
142 KCONFIG:=CONFIG_LEDS_TRIGGER_TIMER
143 FILES:=$(LINUX_DIR)/drivers/leds/ledtrig-timer.ko
144 AUTOLOAD:=$(call AutoLoad,50,ledtrig-timer)
145 endef
146
147 define KernelPackage/ledtrig-timer/description
148 Kernel module that allows LEDs to be controlled by a programmable timer
149 via sysfs.
150 endef
151
152 $(eval $(call KernelPackage,ledtrig-timer))
153
154
155 define KernelPackage/ledtrig-oneshot
156 SUBMENU:=$(LEDS_MENU)
157 TITLE:=LED One-Shot Trigger
158 DEPENDS:=@!LINUX_3_3
159 KCONFIG:=CONFIG_LEDS_TRIGGER_ONESHOT
160 FILES:=$(LINUX_DIR)/drivers/leds/ledtrig-oneshot.ko
161 AUTOLOAD:=$(call AutoLoad,50,ledtrig-oneshot)
162 endef
163
164 define KernelPackage/ledtrig-oneshot/description
165 Kernel module that allows LEDs to be triggered by sporadic events in
166 one-shot pulses.
167 endef
168
169 $(eval $(call KernelPackage,ledtrig-oneshot))