Fix compilation of lm77 module (#3447)
[openwrt.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_DEBUG_CHIP=n
18   FILES:= \
19         $(LINUX_DIR)/drivers/hwmon/hwmon.$(LINUX_KMOD_SUFFIX)
20   AUTOLOAD:=$(call AutoLoad,40,hwmon)
21 endef
22
23 define KernelPackage/hwmon-core/description
24  Kernel modules for hardware monitoring
25 endef
26
27 $(eval $(call KernelPackage,hwmon-core))
28
29
30 define KernelPackage/hwmon-lm77
31   SUBMENU:=$(HWMON_MENU)
32   TITLE:=LM77 monitoring support
33   DEPENDS:=kmod-hwmon-core kmod-i2c-core
34   KCONFIG:=CONFIG_SENSORS_LM77
35   FILES:=$(LINUX_DIR)/drivers/hwmon/lm77.$(LINUX_KMOD_SUFFIX)
36   AUTOLOAD:=$(call AutoLoad,60,lm77)
37 endef
38  
39 define KernelPackage/hwmon-lm77/description
40  Kernel module for LM77 thermal monitor chip 
41 endef
42
43 $(eval $(call KernelPackage,hwmon-lm77))
44
45
46 define KernelPackage/hwmon-pc87360
47   SUBMENU:=$(HWMON_MENU)
48   TITLE:=PC87360 monitoring support
49   DEPENDS:=kmod-hwmon-core @TARGET_x86
50   KCONFIG:= \
51         CONFIG_SENSORS_PC87360 \
52         CONFIG_HWMON_VID
53   FILES:= \
54         $(LINUX_DIR)/drivers/hwmon/hwmon-vid.$(LINUX_KMOD_SUFFIX) \
55         $(LINUX_DIR)/drivers/hwmon/pc87360.$(LINUX_KMOD_SUFFIX)
56   AUTOLOAD:=$(call AutoLoad,50,hwmon-vid pc87360)
57 endef
58
59 define KernelPackage/hwmon-pc87360/description
60  Kernel modules for PC87360 chips
61 endef
62
63 $(eval $(call KernelPackage,hwmon-pc87360))
64