Hi Florian,
Actually I was preparing the same patch just a moment ago, and found out
that LEDS_TRIGGER_MTD is a bool, not tristate.
On 2020-05-04 19:26, Florian Eckert wrote:
Not every target needs this LED trigger. Therefore this trigger can be
installed as kernel module.
Signed-off-by: Florian Eckert <[email protected]>
---
This is a followup patch form the discussion:
https://patchwork.ozlabs.org/project/openwrt/patch/[email protected]/#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
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel