diff options
author | Keith T. Garner <kgarner@kgarner.com> | 2021-05-05 09:04:15 -0500 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2022-01-08 21:31:15 +0100 |
commit | bc37a699e5725994857af9383ff7f7d7bd5fe912 (patch) | |
tree | 8294a005f9b6444b3a2134e7362ba7ca32f0a1b4 /package/kernel/linux/modules/leds.mk | |
parent | 96b5962704611fa37d8ed46b73f4254170529b7a (diff) | |
download | upstream-bc37a699e5725994857af9383ff7f7d7bd5fe912.tar.gz upstream-bc37a699e5725994857af9383ff7f7d7bd5fe912.tar.bz2 upstream-bc37a699e5725994857af9383ff7f7d7bd5fe912.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>
(cherry picked from commit 6a37286c2add96dba42fdd285162228eb55a99f1)
Diffstat (limited to 'package/kernel/linux/modules/leds.mk')
-rw-r--r-- | package/kernel/linux/modules/leds.mk | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/package/kernel/linux/modules/leds.mk b/package/kernel/linux/modules/leds.mk index bc94e54ae1..4c96fa9bf9 100644 --- a/package/kernel/linux/modules/leds.mk +++ b/package/kernel/linux/modules/leds.mk @@ -114,3 +114,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)) |