leds: add activity led trigger kernel module package
authorSven Wegener <sven.wegener@stealer.net>
Tue, 12 May 2020 17:21:16 +0000 (19:21 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Sun, 30 Aug 2020 20:21:34 +0000 (22:21 +0200)
The activity trigger flashes like the heartbeat trigger, but adjusts
based on system load.

Signed-off-by: Sven Wegener <sven.wegener@stealer.net>
package/kernel/linux/modules/leds.mk

index 59ea6edbcdf0835c67fc61abaecd18dc589f4b69..c030b54b39e4f2a0a482cd75bc74a06d8f6908d6 100644 (file)
@@ -24,6 +24,20 @@ $(eval $(call KernelPackage,leds-gpio))
 
 LED_TRIGGER_DIR=$(LINUX_DIR)/drivers/leds/trigger
 
+define KernelPackage/ledtrig-activity
+  SUBMENU:=$(LEDS_MENU)
+  TITLE:=LED Activity Trigger
+  KCONFIG:=CONFIG_LEDS_TRIGGER_ACTIVITY
+  FILES:=$(LED_TRIGGER_DIR)/ledtrig-activity.ko
+  AUTOLOAD:=$(call AutoLoad,50,ledtrig-activity)
+endef
+
+define KernelPackage/ledtrig-activity/description
+ Kernel module that allows LEDs to blink based on system load
+endef
+
+$(eval $(call KernelPackage,ledtrig-activity))
+
 define KernelPackage/ledtrig-heartbeat
   SUBMENU:=$(LEDS_MENU)
   TITLE:=LED Heartbeat Trigger