hwmon.mk 2.6 KB

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