[openwrt/openwrt] kernel: add kmod-leds-uleds
LEDE Commits
lede-commits at lists.infradead.org
Wed May 12 01:50:40 PDT 2021
aparcar pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/6a37286c2add96dba42fdd285162228eb55a99f1
commit 6a37286c2add96dba42fdd285162228eb55a99f1
Author: Keith T. Garner <kgarner at kgarner.com>
AuthorDate: Wed May 5 09:04:15 2021 -0500
kernel: add kmod-leds-uleds
The allows userspace LEDs to be created and controlled. This can be useful
for testing triggers and can also be used to implement virtual LEDs.
Signed-off-by: Keith T. Garner <kgarner at kgarner.com>
[squash fixup commit and improve option wording]
Signed-off-by: Paul Spooren <mail at aparcar.org>
---
package/kernel/linux/modules/leds.mk | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/package/kernel/linux/modules/leds.mk b/package/kernel/linux/modules/leds.mk
index 4dde833664..fdd5280fe4 100644
--- a/package/kernel/linux/modules/leds.mk
+++ b/package/kernel/linux/modules/leds.mk
@@ -145,3 +145,17 @@ define KernelPackage/leds-pwm/description
endef
$(eval $(call KernelPackage,leds-pwm))
+
+define KernelPackage/leds-uleds
+ SUBMENU:=$(LEDS_MENU)
+ TITLE:=Userspace LEDs
+ KCONFIG:=CONFIG_LEDS_USER
+ FILES:=$(LINUX_DIR)/drivers/leds/uleds.ko
+ AUTOLOAD:=$(call AutoLoad,60,leds-uleds,1)
+endef
+
+define KernelPackage/leds-uleds/description
+ This option enables support for userspace LEDs.
+endef
+
+$(eval $(call KernelPackage,leds-uleds))
More information about the lede-commits
mailing list