X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/a375812a88a5af043b998c81152e0c4ca23cff8a..1a3c30a9918734d3a073d3510216e007aa9cb3be:/package/kernel/modules/leds.mk diff --git a/package/kernel/modules/leds.mk b/package/kernel/modules/leds.mk index 43f3ce930..6e94e0485 100644 --- a/package/kernel/modules/leds.mk +++ b/package/kernel/modules/leds.mk @@ -8,22 +8,6 @@ LEDS_MENU:=LED modules -define KernelPackage/leds-alix - SUBMENU:=$(LEDS_MENU) - TITLE:=PCengines ALIX LED support - DEPENDS:=@TARGET_x86 - KCONFIG:=CONFIG_LEDS_ALIX2 - FILES:=$(LINUX_DIR)/drivers/leds/leds-alix2.ko - AUTOLOAD:=$(call AutoLoad,50,leds-alix2) -endef - -define KernelPackage/leds-alix/description - Kernel module for PCengines ALIX LEDs -endef - -$(eval $(call KernelPackage,leds-alix)) - - define KernelPackage/leds-gpio SUBMENU:=$(LEDS_MENU) TITLE:=GPIO LED support @@ -55,21 +39,6 @@ endef $(eval $(call KernelPackage,leds-net48xx)) -define KernelPackage/leds-net5501 - SUBMENU:=$(LEDS_MENU) - TITLE:=Soekris Net5501 LED support - DEPENDS:=@TARGET_x86 +kmod-gpio-cs5535 +kmod-leds-gpio - KCONFIG:=CONFIG_LEDS_NET5501 - FILES:=$(LINUX_DIR)/drivers/leds/leds-net5501.ko - AUTOLOAD:=$(call AutoLoad,50,leds-net5501) -endef - -define KernelPackage/leds-net5501/description - Kernel module for Soekris Net5501 LEDs -endef - -$(eval $(call KernelPackage,leds-net5501)) - define KernelPackage/leds-rb750 SUBMENU:=$(LEDS_MENU) @@ -214,3 +183,34 @@ define KernelPackage/ledtrig-usbdev/description endef $(eval $(call KernelPackage,ledtrig-usbdev)) + + +define KernelPackage/ledtrig-default-on + SUBMENU:=$(LEDS_MENU) + TITLE:=LED Default ON Trigger + KCONFIG:=CONFIG_LEDS_TRIGGER_DEFAULT_ON + FILES:=$(LINUX_DIR)/drivers/leds/ledtrig-default-on.ko + AUTOLOAD:=$(call AutoLoad,50,ledtrig-default-on) +endef + +define KernelPackage/ledtrig-default-on/description + Kernel module that allows LEDs to be initialised in the ON state. +endef + +$(eval $(call KernelPackage,ledtrig-default-on)) + + +define KernelPackage/ledtrig-timer + SUBMENU:=$(LEDS_MENU) + TITLE:=LED Timer Trigger + KCONFIG:=CONFIG_LEDS_TRIGGER_TIMER + FILES:=$(LINUX_DIR)/drivers/leds/ledtrig-timer.ko + AUTOLOAD:=$(call AutoLoad,50,ledtrig-timer) +endef + +define KernelPackage/ledtrig-timer/description + Kernel module that allows LEDs to be controlled by a programmable timer + via sysfs. +endef + +$(eval $(call KernelPackage,ledtrig-timer))