hwmon.mk 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. #
  2. # Copyright (C) 2006,2007 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 KernelPackage/hwmon/Depends
  24. SUBMENU:=$(HWMON_MENU)
  25. DEPENDS:=kmod-hwmon-core $(1)
  26. endef
  27. define KernelPackage/hwmon-lm75
  28. $(call KernelPackage/hwmon/Depends,+kmod-i2c-core)
  29. TITLE:=LM75 monitoring support
  30. KCONFIG:=CONFIG_SENSORS_LM75
  31. FILES:=$(LINUX_DIR)/drivers/hwmon/lm75.$(LINUX_KMOD_SUFFIX)
  32. AUTOLOAD:=$(call AutoLoad,60,lm75)
  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. $(call KernelPackage/hwmon/Depends,+kmod-i2c-core)
  40. TITLE:=LM77 monitoring support
  41. KCONFIG:=CONFIG_SENSORS_LM77
  42. FILES:=$(LINUX_DIR)/drivers/hwmon/lm77.$(LINUX_KMOD_SUFFIX)
  43. AUTOLOAD:=$(call AutoLoad,60,lm77)
  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. $(call KernelPackage/hwmon/Depends,+kmod-i2c-core)
  51. TITLE:=LM90 monitoring support
  52. KCONFIG:=CONFIG_SENSORS_LM90
  53. FILES:=$(LINUX_DIR)/drivers/hwmon/lm90.$(LINUX_KMOD_SUFFIX)
  54. AUTOLOAD:=$(call AutoLoad,60,lm90)
  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. $(call KernelPackage/hwmon/Depends,@TARGET_x86)
  62. TITLE:=PC87360 monitoring support
  63. KCONFIG:= \
  64. CONFIG_SENSORS_PC87360 \
  65. CONFIG_HWMON_VID
  66. FILES:= \
  67. $(LINUX_DIR)/drivers/hwmon/hwmon-vid.$(LINUX_KMOD_SUFFIX) \
  68. $(LINUX_DIR)/drivers/hwmon/pc87360.$(LINUX_KMOD_SUFFIX)
  69. AUTOLOAD:=$(call AutoLoad,50,hwmon-vid pc87360)
  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. $(call KernelPackage/hwmon/Depends,@TARGET_rdc||TARGET_x86)
  77. TITLE:=Winbond W83627HF monitoring support
  78. KCONFIG:= \
  79. CONFIG_SENSORS_W83627HF \
  80. CONFIG_HWMON_VID
  81. FILES:= \
  82. $(LINUX_DIR)/drivers/hwmon/hwmon-vid.$(LINUX_KMOD_SUFFIX) \
  83. $(LINUX_DIR)/drivers/hwmon/w83627hf.$(LINUX_KMOD_SUFFIX)
  84. AUTOLOAD:=$(call AutoLoad,50,hwmon-vid w83627h)
  85. endef
  86. define KernelPacakge/hwmon-w83627hf/description
  87. Kernel module for the Winbond W83627HF chips.
  88. endef
  89. $(eval $(call KernelPackage,hwmon-w83627hf))