kernel: add tty led trigger kernel module package
authorFlorian Eckert <fe@dev.tdt.de>
Wed, 8 Feb 2023 08:23:08 +0000 (09:23 +0100)
committerHauke Mehrtens <hauke@hauke-m.de>
Wed, 1 Mar 2023 21:10:42 +0000 (22:10 +0100)
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>
package/kernel/linux/modules/leds.mk

index 7b5609a84ca2e9761c56a902fc6cd140e7cb9ffe..ce72465ce4d823f323662c9ed975a836117c5223 100644 (file)
@@ -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