leds.mk 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. #
  2. # Copyright (C) 2006-2011 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. LEDS_MENU:=LED modules
  8. define KernelPackage/leds-gpio
  9. SUBMENU:=$(LEDS_MENU)
  10. TITLE:=GPIO LED support
  11. DEPENDS:= @GPIO_SUPPORT
  12. KCONFIG:=CONFIG_LEDS_GPIO
  13. FILES:=$(LINUX_DIR)/drivers/leds/leds-gpio.ko
  14. AUTOLOAD:=$(call AutoLoad,60,leds-gpio,1)
  15. endef
  16. define KernelPackage/leds-gpio/description
  17. Kernel module for LEDs on GPIO lines
  18. endef
  19. $(eval $(call KernelPackage,leds-gpio))
  20. LED_TRIGGER_DIR=$(LINUX_DIR)/drivers/leds/trigger
  21. define KernelPackage/ledtrig-heartbeat
  22. SUBMENU:=$(LEDS_MENU)
  23. TITLE:=LED Heartbeat Trigger
  24. KCONFIG:=CONFIG_LEDS_TRIGGER_HEARTBEAT
  25. FILES:=$(LED_TRIGGER_DIR)/ledtrig-heartbeat.ko
  26. AUTOLOAD:=$(call AutoLoad,50,ledtrig-heartbeat)
  27. endef
  28. define KernelPackage/ledtrig-gpio/description
  29. Kernel module that allows LEDs to blink like heart beat
  30. endef
  31. $(eval $(call KernelPackage,ledtrig-heartbeat))
  32. define KernelPackage/ledtrig-gpio
  33. SUBMENU:=$(LEDS_MENU)
  34. TITLE:=LED GPIO Trigger
  35. KCONFIG:=CONFIG_LEDS_TRIGGER_GPIO
  36. FILES:=$(LED_TRIGGER_DIR)/ledtrig-gpio.ko
  37. AUTOLOAD:=$(call AutoLoad,50,ledtrig-gpio)
  38. endef
  39. define KernelPackage/ledtrig-gpio/description
  40. Kernel module that allows LEDs to be controlled by gpio events
  41. endef
  42. $(eval $(call KernelPackage,ledtrig-gpio))
  43. define KernelPackage/ledtrig-netdev
  44. SUBMENU:=$(LEDS_MENU)
  45. TITLE:=LED NETDEV Trigger
  46. KCONFIG:=CONFIG_LEDS_TRIGGER_NETDEV
  47. FILES:=$(LINUX_DIR)/drivers/leds/ledtrig-netdev.ko
  48. AUTOLOAD:=$(call AutoLoad,50,ledtrig-netdev)
  49. endef
  50. define KernelPackage/ledtrig-netdev/description
  51. Kernel module to drive LEDs based on network activity
  52. endef
  53. $(eval $(call KernelPackage,ledtrig-netdev))
  54. define KernelPackage/ledtrig-default-on
  55. SUBMENU:=$(LEDS_MENU)
  56. TITLE:=LED Default ON Trigger
  57. KCONFIG:=CONFIG_LEDS_TRIGGER_DEFAULT_ON
  58. FILES:=$(LED_TRIGGER_DIR)/ledtrig-default-on.ko
  59. AUTOLOAD:=$(call AutoLoad,50,ledtrig-default-on,1)
  60. endef
  61. define KernelPackage/ledtrig-default-on/description
  62. Kernel module that allows LEDs to be initialised in the ON state
  63. endef
  64. $(eval $(call KernelPackage,ledtrig-default-on))
  65. define KernelPackage/ledtrig-timer
  66. SUBMENU:=$(LEDS_MENU)
  67. TITLE:=LED Timer Trigger
  68. KCONFIG:=CONFIG_LEDS_TRIGGER_TIMER
  69. FILES:=$(LED_TRIGGER_DIR)/ledtrig-timer.ko
  70. AUTOLOAD:=$(call AutoLoad,50,ledtrig-timer,1)
  71. endef
  72. define KernelPackage/ledtrig-timer/description
  73. Kernel module that allows LEDs to be controlled by a programmable timer
  74. via sysfs
  75. endef
  76. $(eval $(call KernelPackage,ledtrig-timer))
  77. define KernelPackage/ledtrig-transient
  78. SUBMENU:=$(LEDS_MENU)
  79. TITLE:=LED Transient Trigger
  80. KCONFIG:=CONFIG_LEDS_TRIGGER_TRANSIENT
  81. FILES:=$(LED_TRIGGER_DIR)/ledtrig-transient.ko
  82. AUTOLOAD:=$(call AutoLoad,50,ledtrig-transient,1)
  83. endef
  84. define KernelPackage/ledtrig-transient/description
  85. Kernel module that allows LEDs one time activation of a transient state.
  86. endef
  87. $(eval $(call KernelPackage,ledtrig-transient))
  88. define KernelPackage/ledtrig-oneshot
  89. SUBMENU:=$(LEDS_MENU)
  90. TITLE:=LED One-Shot Trigger
  91. KCONFIG:=CONFIG_LEDS_TRIGGER_ONESHOT
  92. FILES:=$(LED_TRIGGER_DIR)/ledtrig-oneshot.ko
  93. AUTOLOAD:=$(call AutoLoad,50,ledtrig-oneshot)
  94. endef
  95. define KernelPackage/ledtrig-oneshot/description
  96. Kernel module that allows LEDs to be triggered by sporadic events in
  97. one-shot pulses
  98. endef
  99. $(eval $(call KernelPackage,ledtrig-oneshot))
  100. define KernelPackage/leds-pca963x
  101. SUBMENU:=$(LEDS_MENU)
  102. TITLE:=PCA963x LED support
  103. DEPENDS:=+kmod-i2c-core
  104. KCONFIG:=CONFIG_LEDS_PCA963X
  105. FILES:=$(LINUX_DIR)/drivers/leds/leds-pca963x.ko
  106. AUTOLOAD:=$(call AutoLoad,60,leds-pca963x,1)
  107. endef
  108. define KernelPackage/leds-pca963x/description
  109. Driver for the NXP PCA963x I2C LED controllers.
  110. endef
  111. $(eval $(call KernelPackage,leds-pca963x))