aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel/linux/modules
diff options
context:
space:
mode:
authorFlorian Eckert <fe@dev.tdt.de>2023-02-08 09:23:08 +0100
committerHauke Mehrtens <hauke@hauke-m.de>2023-03-01 22:10:42 +0100
commitb3702fda8f35f091b919e96e283a61634c769fd6 (patch)
tree1d4946b7f769769f070c68503d6c96c8144bf448 /package/kernel/linux/modules
parent736257141f7e2b4cc13c3fe297ecca0b21bcea4b (diff)
downloadupstream-b3702fda8f35f091b919e96e283a61634c769fd6.tar.gz
upstream-b3702fda8f35f091b919e96e283a61634c769fd6.tar.bz2
upstream-b3702fda8f35f091b919e96e283a61634c769fd6.zip
kernel: add tty led trigger kernel module package
This allows LEDs to be controlled by activity on ttys which includes serial devices like '/dev/ttyS0'. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
Diffstat (limited to 'package/kernel/linux/modules')
-rw-r--r--package/kernel/linux/modules/leds.mk17
1 files changed, 17 insertions, 0 deletions
diff --git a/package/kernel/linux/modules/leds.mk b/package/kernel/linux/modules/leds.mk
index 7b5609a84c..ce72465ce4 100644
--- a/package/kernel/linux/modules/leds.mk
+++ b/package/kernel/linux/modules/leds.mk
@@ -115,6 +115,23 @@ endef
$(eval $(call KernelPackage,ledtrig-pattern))
+define KernelPackage/ledtrig-tty
+ SUBMENU:=$(LEDS_MENU)
+ TITLE:=LED Trigger for TTY devices
+ DEPENDS:=@LINUX_5_15
+ KCONFIG:=CONFIG_LEDS_TRIGGER_TTY
+ FILES:=$(LED_TRIGGER_DIR)/ledtrig-tty.ko
+ AUTOLOAD:=$(call AutoLoad,50,ledtrig-tty)
+endef
+
+define KernelPackage/ledtrig-tty/description
+ This allows LEDs to be controlled by activity on ttys which includes
+ serial devices like '/dev/ttyS0'.
+endef
+
+$(eval $(call KernelPackage,ledtrig-tty))
+
+
define KernelPackage/leds-apu
SUBMENU:=$(LEDS_MENU)
TITLE:=PC Engines APU1 LED support