kernel: add kmod-leds-uleds
authorKeith T. Garner <kgarner@kgarner.com>
Wed, 5 May 2021 14:04:15 +0000 (09:04 -0500)
committerPaul Spooren <mail@aparcar.org>
Wed, 12 May 2021 08:47:23 +0000 (10:47 +0200)
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>
package/kernel/linux/modules/leds.mk

index 4dde833664b32bcfccc5eabaf20460b498a614a5..fdd5280fe409388be716972f738da222ec3add84 100644 (file)
@@ -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))