From: Karel Kočí Date: Fri, 12 Nov 2021 08:10:45 +0000 (+0100) Subject: kernel: add kmod-ledtrig-pattern X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=507911f477cc29531a2fbdf364df42e7e4f3c696;p=openwrt%2Fstaging%2Fldir.git kernel: add kmod-ledtrig-pattern This allows LEDs to be triggered by custom pattern and not just predefined ones. Signed-off-by: Karel Kočí --- 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