Fix i2c module dependencies (#1525)
[openwrt/svn-archive/archive.git] / package / kernel / modules / i2c.mk
1 #
2 # Copyright (C) 2006 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 I2CMENU:=I2C Bus
10
11 define KernelPackage/i2c-core
12 TITLE:=I2C support
13 DESCRIPTION:=Kernel modules for i2c support
14 SUBMENU:=$(I2CMENU)
15 KCONFIG:=$(CONFIG_I2C_CORE) \
16 $(CONFIG_I2C_DEV)
17 FILES:=$(MODULES_DIR)/kernel/drivers/i2c/*.$(LINUX_KMOD_SUFFIX)
18 AUTOLOAD:=$(call AutoLoad,50,i2c-core i2c-dev)
19 endef
20 $(eval $(call KernelPackage,i2c-core))
21
22 define KernelPackage/i2c-algos
23 TITLE:=I2C algorithms support
24 DESCRIPTION:=Kernel modules for various i2c algorithms
25 DEPENDS:=kmod-i2c-core
26 SUBMENU:=$(I2CMENU)
27 KCONFIG:=$(CONFIG_I2C_ALGOBIT)
28 FILES:=$(MODULES_DIR)/kernel/drivers/i2c/algos/*.$(LINUX_KMOD_SUFFIX)
29 AUTOLOAD:=$(call AutoLoad,60,i2c-algo-bit i2c-algo-pcf i2c-algo-pca)
30 endef
31 $(eval $(call KernelPackage,i2c-algos))
32
33 define KernelPackage/i2c-au1x00gpio
34 TITLE:=I2C GPIO interface for Au1x00 devices
35 DESCRIPTION:=I2C GPIO interface for Au1x00 devices
36 DEFAULT:=y if LINUX_2_6_AU1000
37 DEPENDS:=kmod-i2c-core kmod-i2c-algos @LINUX_2_6_AU1000
38 SUBMENU:=$(I2CMENU)
39 KCONFIG:=$(CONFIG_I2C_AU1X00GPIO)
40 FILES:=$(MODULES_DIR)/kernel/drivers/i2c/busses/i2c-au1x00gpio.$(LINUX_KMOD_SUFFIX)
41 AUTOLOAD:=$(call Autoload,70,i2c-au1x00gpio)
42 endef
43 $(eval $(call KernelPackage,i2c-au1x00gpio))
44