build eeprom_93cx6 as a module, add a KernelPackage for it and for crc-itu-t
[openwrt.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 SUBMENU:=$(I2CMENU)
13 TITLE:=I2C support
14 DESCRIPTION:=Kernel modules for i2c support
15 DEPENDS:=@LINUX_2_6
16 KCONFIG:=CONFIG_I2C
17 FILES:=$(LINUX_DIR)/drivers/i2c/*.$(LINUX_KMOD_SUFFIX)
18 AUTOLOAD:=$(call AutoLoad,50,i2c-core i2c-dev)
19 endef
20
21 $(eval $(call KernelPackage,i2c-core))
22
23
24 define KernelPackage/i2c-algos
25 SUBMENU:=$(I2CMENU)
26 TITLE:=I2C algorithms support
27 DESCRIPTION:=Kernel modules for various i2c algorithms
28 DEPENDS:=kmod-i2c-core
29 KCONFIG:=CONFIG_I2C_ALGOBIT
30 FILES:=$(LINUX_DIR)/drivers/i2c/algos/*.$(LINUX_KMOD_SUFFIX)
31 AUTOLOAD:=$(call AutoLoad,60,i2c-algo-bit i2c-algo-pcf i2c-algo-pca)
32 endef
33
34 $(eval $(call KernelPackage,i2c-algos))
35
36
37 define KernelPackage/i2c-scx200
38 SUBMENU:=$(I2CMENU)
39 TITLE:=SCX200 i2c support
40 DESCRIPTION:=Kernel module for SCX200 i2c bus
41 DEFAULT:=y if LINUX_2_6_X86_Soekris
42 DEPENDS:=kmod-i2c-core kmod-i2c-algos @LINUX_2_6_X86_Soekris
43 KCONFIG:=CONFIG_SCx200_I2C
44 FILES:= \
45 $(LINUX_DIR)/drivers/i2c/busses/scx200_i2c.$(LINUX_KMOD_SUFFIX) \
46 $(LINUX_DIR)/drivers/i2c/busses/i2c-isa.$(LINUX_KMOD_SUFFIX)
47 AUTOLOAD:=$(call AutoLoad,70,i2c-isa scx200_i2c)
48 endef
49
50 $(eval $(call KernelPackage,i2c-scx200))
This page took 0.043106 seconds and 5 git commands to generate.