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

mans0n mans0n at gorani.run
Tue May 5 11:47:45 EDT 2020


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 <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
> 

_______________________________________________
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