diff options
author | Sven Wegener <sven.wegener@stealer.net> | 2020-05-12 19:21:16 +0200 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2020-08-30 22:21:34 +0200 |
commit | 6a9c76a6c493d6618e3a8c729d20696e9fbc6073 (patch) | |
tree | 4f01288fd6605f968caa667cc9c0233ca19eb9e8 /package/kernel/linux | |
parent | 55b73d6754ea1024e2d46324f0bc971b12a64dba (diff) | |
download | upstream-6a9c76a6c493d6618e3a8c729d20696e9fbc6073.tar.gz upstream-6a9c76a6c493d6618e3a8c729d20696e9fbc6073.tar.bz2 upstream-6a9c76a6c493d6618e3a8c729d20696e9fbc6073.zip |
leds: add activity led trigger kernel module package
The activity trigger flashes like the heartbeat trigger, but adjusts
based on system load.
Signed-off-by: Sven Wegener <sven.wegener@stealer.net>
Diffstat (limited to 'package/kernel/linux')
-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 59ea6edbcd..c030b54b39 100644 --- a/package/kernel/linux/modules/leds.mk +++ b/package/kernel/linux/modules/leds.mk @@ -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 |