hwmon.mk 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. #
  2. # Copyright (C) 2006-2010 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. HWMON_MENU:=Hardware Monitoring Support
  8. define KernelPackage/hwmon-core
  9. SUBMENU:=$(HWMON_MENU)
  10. TITLE:=Hardware monitoring support
  11. KCONFIG:= \
  12. CONFIG_HWMON \
  13. CONFIG_HWMON_DEBUG_CHIP=n
  14. FILES:= \
  15. $(LINUX_DIR)/drivers/hwmon/hwmon.ko
  16. AUTOLOAD:=$(call AutoLoad,40,hwmon)
  17. endef
  18. define KernelPackage/hwmon-core/description
  19. Kernel modules for hardware monitoring
  20. endef
  21. $(eval $(call KernelPackage,hwmon-core))
  22. define AddDepends/hwmon
  23. SUBMENU:=$(HWMON_MENU)
  24. DEPENDS:=kmod-hwmon-core $(1)
  25. endef
  26. define KernelPackage/hwmon-lm63
  27. TITLE:=LM63/64 monitoring support
  28. KCONFIG:=CONFIG_SENSORS_LM63
  29. FILES:=$(LINUX_DIR)/drivers/hwmon/lm63.ko
  30. AUTOLOAD:=$(call AutoLoad,60,lm63)
  31. $(call AddDepends/hwmon,+kmod-i2c-core)
  32. endef
  33. define KernelPackage/hwmon-lm63/description
  34. Kernel module for lm63 and lm64 thermal monitor chip
  35. endef
  36. $(eval $(call KernelPackage,hwmon-lm63))
  37. define KernelPackage/hwmon-lm75
  38. TITLE:=LM75 monitoring support
  39. KCONFIG:=CONFIG_SENSORS_LM75
  40. FILES:=$(LINUX_DIR)/drivers/hwmon/lm75.ko
  41. AUTOLOAD:=$(call AutoLoad,60,lm75)
  42. $(call AddDepends/hwmon,+kmod-i2c-core)
  43. endef
  44. define KernelPackage/hwmon-lm75/description
  45. Kernel module for lm75 thermal monitor chip
  46. endef
  47. $(eval $(call KernelPackage,hwmon-lm75))
  48. define KernelPackage/hwmon-lm77
  49. TITLE:=LM77 monitoring support
  50. KCONFIG:=CONFIG_SENSORS_LM77
  51. FILES:=$(LINUX_DIR)/drivers/hwmon/lm77.ko
  52. AUTOLOAD:=$(call AutoLoad,60,lm77)
  53. $(call AddDepends/hwmon,+kmod-i2c-core)
  54. endef
  55. define KernelPackage/hwmon-lm77/description
  56. Kernel module for LM77 thermal monitor chip
  57. endef
  58. $(eval $(call KernelPackage,hwmon-lm77))
  59. define KernelPackage/hwmon-lm90
  60. TITLE:=LM90 monitoring support
  61. KCONFIG:=CONFIG_SENSORS_LM90
  62. FILES:=$(LINUX_DIR)/drivers/hwmon/lm90.ko
  63. AUTOLOAD:=$(call AutoLoad,60,lm90)
  64. $(call AddDepends/hwmon,+kmod-i2c-core)
  65. endef
  66. define KernelPackage/hwmon-lm90/description
  67. Kernel module for LM90 thermal monitor chip
  68. endef
  69. $(eval $(call KernelPackage,hwmon-lm90))
  70. define KernelPackage/hwmon-lm95241
  71. TITLE:=LM95241 monitoring support
  72. KCONFIG:=CONFIG_SENSORS_LM95241
  73. FILES:=$(LINUX_DIR)/drivers/hwmon/lm95241.ko
  74. AUTOLOAD:=$(call AutoLoad,60,lm95241)
  75. $(call AddDepends/hwmon,+kmod-i2c-core)
  76. endef
  77. define KernelPackage/hwmon-lm95241/description
  78. Kernel module for LM95241 thermal monitor chip
  79. endef
  80. $(eval $(call KernelPackage,hwmon-lm95241))
  81. define KernelPackage/hwmon-pc87360
  82. TITLE:=PC87360 monitoring support
  83. KCONFIG:= \
  84. CONFIG_SENSORS_PC87360 \
  85. CONFIG_HWMON_VID
  86. FILES:= \
  87. $(LINUX_DIR)/drivers/hwmon/hwmon-vid.ko \
  88. $(LINUX_DIR)/drivers/hwmon/pc87360.ko
  89. AUTOLOAD:=$(call AutoLoad,50,hwmon-vid pc87360)
  90. $(call AddDepends/hwmon,@TARGET_x86)
  91. endef
  92. define KernelPackage/hwmon-pc87360/description
  93. Kernel modules for PC87360 chips
  94. endef
  95. $(eval $(call KernelPackage,hwmon-pc87360))
  96. define KernelPackage/hwmon-w83627hf
  97. TITLE:=Winbond W83627HF monitoring support
  98. KCONFIG:= \
  99. CONFIG_SENSORS_W83627HF \
  100. CONFIG_HWMON_VID
  101. FILES:= \
  102. $(LINUX_DIR)/drivers/hwmon/hwmon-vid.ko \
  103. $(LINUX_DIR)/drivers/hwmon/w83627hf.ko
  104. AUTOLOAD:=$(call AutoLoad,50,hwmon-vid w83627hf)
  105. $(call AddDepends/hwmon,@TARGET_rdc||TARGET_x86)
  106. endef
  107. define KernelPacakge/hwmon-w83627hf/description
  108. Kernel module for the Winbond W83627HF chips.
  109. endef
  110. $(eval $(call KernelPackage,hwmon-w83627hf))