[OpenWrt-Devel] [PATCH] kernel: add kmod-ledtrig-mtd as a kernel module

Florian Eckert fe at dev.tdt.de
Mon May 4 06:26:29 EDT 2020


Not every target needs this LED trigger. Therefore this trigger can be
installed as kernel module.

Signed-off-by: Florian Eckert <fe at dev.tdt.de>
---

This is a followup patch form the discussion:
https://patchwork.ozlabs.org/project/openwrt/patch/20181129132538.20179-3-fe@dev.tdt.de/#2043062

 package/kernel/linux/modules/leds.mk | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/package/kernel/linux/modules/leds.mk b/package/kernel/linux/modules/leds.mk
index 59ea6edbcd..fa9756ff39 100644
--- a/package/kernel/linux/modules/leds.mk
+++ b/package/kernel/linux/modules/leds.mk
@@ -131,6 +131,21 @@ endef
 $(eval $(call KernelPackage,ledtrig-oneshot))
 
 
+define KernelPackage/ledtrig-mtd
+  SUBMENU:=$(LEDS_MENU)
+  TITLE:=LED MTD (NAND/NOR) Trigger
+  KCONFIG:=CONFIG_LEDS_TRIGGER_MTD
+  FILES:=$(LED_TRIGGER_DIR)/ledtrig-mtd.ko
+  AUTOLOAD:=$(call AutoLoad,50,ledtrig-mtd)
+endef
+
+define KernelPackage/ledtrig-mtd/description
+ Kernel module that allows LEDs to be controlled by MTD activity.
+endef
+
+$(eval $(call KernelPackage,ledtrig-mtd))
+
+
 define KernelPackage/leds-pca963x
   SUBMENU:=$(LEDS_MENU)
   TITLE:=PCA963x LED support
-- 
2.20.1


_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list