aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKeith T. Garner <kgarner@kgarner.com>2021-05-05 09:04:15 -0500
committerPaul Spooren <mail@aparcar.org>2021-05-12 10:47:23 +0200
commit6a37286c2add96dba42fdd285162228eb55a99f1 (patch)
treebb598397c7fc71a5feb966ff719cd0b36841c85a
parent4e385a27d6c4aab62ef7fc9856f09ebee9632985 (diff)
downloadupstream-6a37286c2add96dba42fdd285162228eb55a99f1.tar.gz
upstream-6a37286c2add96dba42fdd285162228eb55a99f1.tar.bz2
upstream-6a37286c2add96dba42fdd285162228eb55a99f1.zip
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@kgarner.com> [squash fixup commit and improve option wording] Signed-off-by: Paul Spooren <mail@aparcar.org>
-rw-r--r--package/kernel/linux/modules/leds.mk14
1 files changed, 14 insertions, 0 deletions
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))