leds.mk 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  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-activity
  22. SUBMENU:=$(LEDS_MENU)
  23. TITLE:=LED Activity Trigger
  24. KCONFIG:=CONFIG_LEDS_TRIGGER_ACTIVITY
  25. FILES:=$(LED_TRIGGER_DIR)/ledtrig-activity.ko
  26. AUTOLOAD:=$(call AutoLoad,50,ledtrig-activity)
  27. endef
  28. define KernelPackage/ledtrig-activity/description
  29. Kernel module that allows LEDs to blink based on system load
  30. endef
  31. $(eval $(call KernelPackage,ledtrig-activity))
  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-transient
  44. SUBMENU:=$(LEDS_MENU)
  45. TITLE:=LED Transient Trigger
  46. KCONFIG:=CONFIG_LEDS_TRIGGER_TRANSIENT
  47. FILES:=$(LED_TRIGGER_DIR)/ledtrig-transient.ko
  48. AUTOLOAD:=$(call AutoLoad,50,ledtrig-transient,1)
  49. endef
  50. define KernelPackage/ledtrig-transient/description
  51. Kernel module that allows LEDs one time activation of a transient state.
  52. endef
  53. $(eval $(call KernelPackage,ledtrig-transient))
  54. define KernelPackage/ledtrig-oneshot
  55. SUBMENU:=$(LEDS_MENU)
  56. TITLE:=LED One-Shot Trigger
  57. KCONFIG:=CONFIG_LEDS_TRIGGER_ONESHOT
  58. FILES:=$(LED_TRIGGER_DIR)/ledtrig-oneshot.ko
  59. AUTOLOAD:=$(call AutoLoad,50,ledtrig-oneshot)
  60. endef
  61. define KernelPackage/ledtrig-oneshot/description
  62. Kernel module that allows LEDs to be triggered by sporadic events in
  63. one-shot pulses
  64. endef
  65. $(eval $(call KernelPackage,ledtrig-oneshot))
  66. define KernelPackage/leds-apu
  67. SUBMENU:=$(LEDS_MENU)
  68. TITLE:=PC Engines APU1 LED support
  69. DEPENDS:= @GPIO_SUPPORT @TARGET_x86
  70. KCONFIG:=CONFIG_LEDS_APU
  71. FILES:=$(LINUX_DIR)/drivers/leds/leds-apu.ko
  72. AUTOLOAD:=$(call AutoLoad,60,leds-apu,1)
  73. endef
  74. define KernelPackage/leds-apu/description
  75. Driver for the PC Engines APU1 LEDs.
  76. endef
  77. $(eval $(call KernelPackage,leds-apu))
  78. define KernelPackage/leds-pca963x
  79. SUBMENU:=$(LEDS_MENU)
  80. TITLE:=PCA963x LED support
  81. DEPENDS:=+kmod-i2c-core
  82. KCONFIG:=CONFIG_LEDS_PCA963X
  83. FILES:=$(LINUX_DIR)/drivers/leds/leds-pca963x.ko
  84. AUTOLOAD:=$(call AutoLoad,60,leds-pca963x,1)
  85. endef
  86. define KernelPackage/leds-pca963x/description
  87. Driver for the NXP PCA963x I2C LED controllers.
  88. endef
  89. $(eval $(call KernelPackage,leds-pca963x))
  90. define KernelPackage/leds-pwm
  91. SUBMENU:=$(LEDS_MENU)
  92. TITLE:=PWM driven LED Support
  93. KCONFIG:=CONFIG_LEDS_PWM
  94. DEPENDS:= @PWM_SUPPORT
  95. FILES:=$(LINUX_DIR)/drivers/leds/leds-pwm.ko
  96. AUTOLOAD:=$(call AutoLoad,60,leds-pwm,1)
  97. endef
  98. define KernelPackage/leds-pwm/description
  99. This option enables support for pwm driven LEDs
  100. endef
  101. $(eval $(call KernelPackage,leds-pwm))