move hardware monitoring support in a separate hwmon.mk (before adding other modules)
[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_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-pc87360
33   SUBMENU:=$(HWMON_MENU)
34   TITLE:=PC87360 monitoring support
35   KCONFIG:=CONFIG_SENSORS_PC87360
36   FILES:=$(LINUX_DIR)/drivers/hwmon/pc87360.$(LINUX_KMOD_SUFFIX)
37   AUTOLOAD:=$(call AutoLoad,50,pc87360)
38   DEPENDS:=kmod-hwmon-core
39 endef
40
41 define KernelPackage/hwmon-pc87360/description
42  Kernel modules for PC87360 chips
43 endef
44
45 $(eval $(call KernelPackage,hwmon-pc87360))
46