source: trunk/package/kernel/modules/hwmon.mk @ 21248

Last change on this file since 21248 was 21248, checked in by nico, 7 years ago

package/kernel: move AddDepends calls at the end of package definitions, move back some dependencies in DEPENDS for clarity

  • Property svn:copyright set to Copyright (C) 2007 OpenWrt.org
File size: 2.8 KB
Line 
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
8HWMON_MENU:=Hardware Monitoring Support
9
10define KernelPackage/hwmon-core
11  SUBMENU:=$(HWMON_MENU)
12  TITLE:=Hardware monitoring support
13  DEPENDS:=@LINUX_2_6
14  KCONFIG:= \
15        CONFIG_HWMON \
16        CONFIG_HWMON_DEBUG_CHIP=n
17  FILES:= \
18        $(LINUX_DIR)/drivers/hwmon/hwmon.$(LINUX_KMOD_SUFFIX)
19  AUTOLOAD:=$(call AutoLoad,40,hwmon)
20endef
21
22define KernelPackage/hwmon-core/description
23 Kernel modules for hardware monitoring
24endef
25
26$(eval $(call KernelPackage,hwmon-core))
27
28
29define AddDepends/hwmon
30  SUBMENU:=$(HWMON_MENU)
31  DEPENDS:=kmod-hwmon-core $(1)
32endef
33
34
35define KernelPackage/hwmon-lm75
36  TITLE:=LM75 monitoring support
37  KCONFIG:=CONFIG_SENSORS_LM75
38  FILES:=$(LINUX_DIR)/drivers/hwmon/lm75.$(LINUX_KMOD_SUFFIX)
39  AUTOLOAD:=$(call AutoLoad,60,lm75)
40  $(call AddDepends/hwmon,+kmod-i2c-core)
41endef
42
43define KernelPackage/hwmon-lm75/description
44 Kernel module for lm75 thermal monitor chip
45endef
46
47$(eval $(call KernelPackage,hwmon-lm75))
48
49
50define KernelPackage/hwmon-lm77
51  TITLE:=LM77 monitoring support
52  KCONFIG:=CONFIG_SENSORS_LM77
53  FILES:=$(LINUX_DIR)/drivers/hwmon/lm77.$(LINUX_KMOD_SUFFIX)
54  AUTOLOAD:=$(call AutoLoad,60,lm77)
55  $(call AddDepends/hwmon,+kmod-i2c-core)
56endef
57
58define KernelPackage/hwmon-lm77/description
59 Kernel module for LM77 thermal monitor chip
60endef
61
62$(eval $(call KernelPackage,hwmon-lm77))
63
64
65define KernelPackage/hwmon-lm90
66  TITLE:=LM90 monitoring support
67  KCONFIG:=CONFIG_SENSORS_LM90
68  FILES:=$(LINUX_DIR)/drivers/hwmon/lm90.$(LINUX_KMOD_SUFFIX)
69  AUTOLOAD:=$(call AutoLoad,60,lm90)
70  $(call AddDepends/hwmon,+kmod-i2c-core)
71endef
72
73define KernelPackage/hwmon-lm90/description
74 Kernel module for LM90 thermal monitor chip
75endef
76
77$(eval $(call KernelPackage,hwmon-lm90))
78
79
80define KernelPackage/hwmon-pc87360
81  TITLE:=PC87360 monitoring support
82  DEPENDS:=@TARGET_x86
83  KCONFIG:= \
84        CONFIG_SENSORS_PC87360 \
85        CONFIG_HWMON_VID
86  FILES:= \
87        $(LINUX_DIR)/drivers/hwmon/hwmon-vid.$(LINUX_KMOD_SUFFIX) \
88        $(LINUX_DIR)/drivers/hwmon/pc87360.$(LINUX_KMOD_SUFFIX)
89  AUTOLOAD:=$(call AutoLoad,50,hwmon-vid pc87360)
90  $(call AddDepends/hwmon)
91endef
92
93define KernelPackage/hwmon-pc87360/description
94 Kernel modules for PC87360 chips
95endef
96
97$(eval $(call KernelPackage,hwmon-pc87360))
98
99
100define KernelPackage/hwmon-w83627hf
101  TITLE:=Winbond W83627HF monitoring support
102  DEPENDS:=@TARGET_rdc||TARGET_x86
103  KCONFIG:= \
104        CONFIG_SENSORS_W83627HF \
105        CONFIG_HWMON_VID
106  FILES:= \
107        $(LINUX_DIR)/drivers/hwmon/hwmon-vid.$(LINUX_KMOD_SUFFIX) \
108        $(LINUX_DIR)/drivers/hwmon/w83627hf.$(LINUX_KMOD_SUFFIX)
109  AUTOLOAD:=$(call AutoLoad,50,hwmon-vid w83627hf)
110$(call AddDepends/hwmon)
111endef
112
113define KernelPacakge/hwmon-w83627hf/description
114  Kernel module for the Winbond W83627HF chips.
115endef
116
117$(eval $(call KernelPackage,hwmon-w83627hf))
Note: See TracBrowser for help on using the repository browser.