hwmon.mk 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  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. DEPENDS:=@LINUX_2_6
  12. KCONFIG:= \
  13. CONFIG_HWMON \
  14. CONFIG_HWMON_DEBUG_CHIP=n
  15. FILES:= \
  16. $(LINUX_DIR)/drivers/hwmon/hwmon.$(LINUX_KMOD_SUFFIX)
  17. AUTOLOAD:=$(call AutoLoad,40,hwmon)
  18. endef
  19. define KernelPackage/hwmon-core/description
  20. Kernel modules for hardware monitoring
  21. endef
  22. $(eval $(call KernelPackage,hwmon-core))
  23. define AddDepends/hwmon
  24. SUBMENU:=$(HWMON_MENU)
  25. DEPENDS:=kmod-hwmon-core $(1)
  26. endef
  27. define KernelPackage/hwmon-lm75
  28. TITLE:=LM75 monitoring support
  29. KCONFIG:=CONFIG_SENSORS_LM75
  30. FILES:=$(LINUX_DIR)/drivers/hwmon/lm75.$(LINUX_KMOD_SUFFIX)
  31. AUTOLOAD:=$(call AutoLoad,60,lm75)
  32. $(call AddDepends/hwmon,+kmod-i2c-core)
  33. endef
  34. define KernelPackage/hwmon-lm75/description
  35. Kernel module for lm75 thermal monitor chip
  36. endef
  37. $(eval $(call KernelPackage,hwmon-lm75))
  38. define KernelPackage/hwmon-lm77
  39. TITLE:=LM77 monitoring support
  40. KCONFIG:=CONFIG_SENSORS_LM77
  41. FILES:=$(LINUX_DIR)/drivers/hwmon/lm77.$(LINUX_KMOD_SUFFIX)
  42. AUTOLOAD:=$(call AutoLoad,60,lm77)
  43. $(call AddDepends/hwmon,+kmod-i2c-core)
  44. endef
  45. define KernelPackage/hwmon-lm77/description
  46. Kernel module for LM77 thermal monitor chip
  47. endef
  48. $(eval $(call KernelPackage,hwmon-lm77))
  49. define KernelPackage/hwmon-lm90
  50. TITLE:=LM90 monitoring support
  51. KCONFIG:=CONFIG_SENSORS_LM90
  52. FILES:=$(LINUX_DIR)/drivers/hwmon/lm90.$(LINUX_KMOD_SUFFIX)
  53. AUTOLOAD:=$(call AutoLoad,60,lm90)
  54. $(call AddDepends/hwmon,+kmod-i2c-core)
  55. endef
  56. define KernelPackage/hwmon-lm90/description
  57. Kernel module for LM90 thermal monitor chip
  58. endef
  59. $(eval $(call KernelPackage,hwmon-lm90))
  60. define KernelPackage/hwmon-pc87360
  61. TITLE:=PC87360 monitoring support
  62. KCONFIG:= \
  63. CONFIG_SENSORS_PC87360 \
  64. CONFIG_HWMON_VID
  65. FILES:= \
  66. $(LINUX_DIR)/drivers/hwmon/hwmon-vid.$(LINUX_KMOD_SUFFIX) \
  67. $(LINUX_DIR)/drivers/hwmon/pc87360.$(LINUX_KMOD_SUFFIX)
  68. AUTOLOAD:=$(call AutoLoad,50,hwmon-vid pc87360)
  69. $(call AddDepends/hwmon,@TARGET_x86)
  70. endef
  71. define KernelPackage/hwmon-pc87360/description
  72. Kernel modules for PC87360 chips
  73. endef
  74. $(eval $(call KernelPackage,hwmon-pc87360))
  75. define KernelPackage/hwmon-w83627hf
  76. TITLE:=Winbond W83627HF monitoring support
  77. KCONFIG:= \
  78. CONFIG_SENSORS_W83627HF \
  79. CONFIG_HWMON_VID
  80. FILES:= \
  81. $(LINUX_DIR)/drivers/hwmon/hwmon-vid.$(LINUX_KMOD_SUFFIX) \
  82. $(LINUX_DIR)/drivers/hwmon/w83627hf.$(LINUX_KMOD_SUFFIX)
  83. AUTOLOAD:=$(call AutoLoad,50,hwmon-vid w83627hf)
  84. $(call AddDepends/hwmon,@TARGET_rdc||TARGET_x86)
  85. endef
  86. define KernelPacakge/hwmon-w83627hf/description
  87. Kernel module for the Winbond W83627HF chips.
  88. endef
  89. $(eval $(call KernelPackage,hwmon-w83627hf))