[openwrt/openwrt] kernel: add tty led trigger kernel module package
LEDE Commits
lede-commits at lists.infradead.org
Wed Mar 1 13:11:53 PST 2023
hauke pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/b3702fda8f35f091b919e96e283a61634c769fd6
commit b3702fda8f35f091b919e96e283a61634c769fd6
Author: Florian Eckert <fe at dev.tdt.de>
AuthorDate: Wed Feb 8 09:23:08 2023 +0100
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 at dev.tdt.de>
---
package/kernel/linux/modules/leds.mk | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
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
More information about the lede-commits
mailing list