Skip to content

Commit

Permalink
kernel: add kmod-leds-uleds
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
ktgeek authored and aparcar committed May 12, 2021
1 parent 4e385a2 commit 6a37286
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions package/kernel/linux/modules/leds.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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))

0 comments on commit 6a37286

Please sign in to comment.