diff options
author | Karel Kočí <karel.koci@nic.cz> | 2021-11-12 09:10:45 +0100 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2021-11-20 18:53:14 +0100 |
commit | 507911f477cc29531a2fbdf364df42e7e4f3c696 (patch) | |
tree | ae59223cbeb889818ad20ab27fa021cc2bd37a86 /package | |
parent | c65196a48a4d4a586e8802207ba91578565d8983 (diff) | |
download | upstream-507911f477cc29531a2fbdf364df42e7e4f3c696.tar.gz upstream-507911f477cc29531a2fbdf364df42e7e4f3c696.tar.bz2 upstream-507911f477cc29531a2fbdf364df42e7e4f3c696.zip |
kernel: add kmod-ledtrig-pattern
This allows LEDs to be triggered by custom pattern and not just
predefined ones.
Signed-off-by: Karel Kočí <karel.koci@nic.cz>
Diffstat (limited to 'package')
-rw-r--r-- | package/kernel/linux/modules/leds.mk | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/package/kernel/linux/modules/leds.mk b/package/kernel/linux/modules/leds.mk index 0ef0aee3fb..8d104f5651 100644 --- a/package/kernel/linux/modules/leds.mk +++ b/package/kernel/linux/modules/leds.mk @@ -99,6 +99,22 @@ endef $(eval $(call KernelPackage,ledtrig-oneshot)) +define KernelPackage/ledtrig-pattern + SUBMENU:=$(LEDS_MENU) + TITLE:=LED Pattern Trigger + KCONFIG:=CONFIG_LEDS_TRIGGER_PATTERN + FILES:=$(LED_TRIGGER_DIR)/ledtrig-pattern.ko + AUTOLOAD:=$(call AutoLoad,50,ledtrig-pattern) +endef + +define KernelPackage/ledtrig-pattern/description + This allows LEDs to be controlled by a software or hardware pattern + which is a series of tuples, of brightness and duration (ms). +endef + +$(eval $(call KernelPackage,ledtrig-pattern)) + + define KernelPackage/leds-apu SUBMENU:=$(LEDS_MENU) TITLE:=PC Engines APU1 LED support |