add LM77 sensors support (closes: #2419)
[openwrt/svn-archive/archive.git] / package / kernel / modules / hwmon.mk
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 # $Id$
8
9 HWMON_MENU:=Hardware Monitoring Support
10
11 define KernelPackage/hwmon-core
12 SUBMENU:=$(HWMON_MENU)
13 TITLE:=Hardware monitoring support
14 DEPENDS:=@LINUX_2_6
15 KCONFIG:= \
16 CONFIG_HWMON \
17 CONFIG_HWMON_VID \
18 CONFIG_HWMON_DEBUG_CHIP=n
19 FILES:= \
20 $(LINUX_DIR)/drivers/hwmon/hwmon.$(LINUX_KMOD_SUFFIX) \
21 $(LINUX_DIR)/drivers/hwmon/hwmon-vid.$(LINUX_KMOD_SUFFIX)
22 AUTOLOAD:=$(call AutoLoad,40,hwmon hwmon-vid)
23 endef
24
25 define KernelPackage/hwmon-core/description
26 Kernel modules for hardware monitoring
27 endef
28
29 $(eval $(call KernelPackage,hwmon-core))
30
31
32 define KernelPackage/hwmon-lm77
33 SUBMENU:=$(HWMON_MENU)
34 TITLE:=LM77 monitoring support
35 DEPENDS:=kmod-hwmon-core
36 KCONFIG:=CONFIG_SENSORS_LM77
37 FILES:=$(LINUX_DIR)/drivers/hwmon/lm77.$(LINUX_KMOD_SUFFIX)
38 AUTOLOAD:=$(call AutoLoad,60,lm77)
39 endef
40
41 define KernelPackage/hwmon-lm77/description
42 Kernel module for LM77 thermal monitor chip
43 endef
44
45 $(eval $(call KernelPackage,hwmon-lm77))
46
47
48 define KernelPackage/hwmon-pc87360
49 SUBMENU:=$(HWMON_MENU)
50 TITLE:=PC87360 monitoring support
51 DEPENDS:=kmod-hwmon-core
52 KCONFIG:=CONFIG_SENSORS_PC87360
53 FILES:=$(LINUX_DIR)/drivers/hwmon/pc87360.$(LINUX_KMOD_SUFFIX)
54 AUTOLOAD:=$(call AutoLoad,50,pc87360)
55 endef
56
57 define KernelPackage/hwmon-pc87360/description
58 Kernel modules for PC87360 chips
59 endef
60
61 $(eval $(call KernelPackage,hwmon-pc87360))
62