summaryrefslogtreecommitdiff
path: root/package/kernel/modules/i2c.mk
diff options
context:
space:
mode:
authorNicolas Thill <nico@openwrt.org>2007-09-03 08:58:14 +0000
committerNicolas Thill <nico@openwrt.org>2007-09-03 08:58:14 +0000
commit8dc7ced4d4df85bc6cc77b625d54150a64f31bc6 (patch)
treee506b1895f22ee50f8e03e6806afc8384560e78a /package/kernel/modules/i2c.mk
parente5e03321f9e942f75b8b150dc0bbdaba6b1c0c9b (diff)
downloadmtk-20170518-8dc7ced4d4df85bc6cc77b625d54150a64f31bc6.zip
mtk-20170518-8dc7ced4d4df85bc6cc77b625d54150a64f31bc6.tar.gz
mtk-20170518-8dc7ced4d4df85bc6cc77b625d54150a64f31bc6.tar.bz2
require all CONFIG_* symbols listed in its KCONFIG to be set to m in order to actually build a kmod package, tweak and fix kernel package definitions.
SVN-Revision: 8591
Diffstat (limited to 'package/kernel/modules/i2c.mk')
-rw-r--r--package/kernel/modules/i2c.mk26
1 files changed, 19 insertions, 7 deletions
diff --git a/package/kernel/modules/i2c.mk b/package/kernel/modules/i2c.mk
index 00bd60e..f8d8d86 100644
--- a/package/kernel/modules/i2c.mk
+++ b/package/kernel/modules/i2c.mk
@@ -13,8 +13,12 @@ define KernelPackage/i2c-core
TITLE:=I2C support
DESCRIPTION:=Kernel modules for i2c support
DEPENDS:=@LINUX_2_6
- KCONFIG:=CONFIG_I2C
- FILES:=$(LINUX_DIR)/drivers/i2c/*.$(LINUX_KMOD_SUFFIX)
+ KCONFIG:= \
+ CONFIG_I2C \
+ CONFIG_I2C_CHARDEV
+ FILES:= \
+ $(LINUX_DIR)/drivers/i2c/i2c-core.$(LINUX_KMOD_SUFFIX) \
+ $(LINUX_DIR)/drivers/i2c/i2c-dev.$(LINUX_KMOD_SUFFIX)
AUTOLOAD:=$(call AutoLoad,50,i2c-core i2c-dev)
endef
@@ -26,8 +30,14 @@ define KernelPackage/i2c-algos
TITLE:=I2C algorithms support
DESCRIPTION:=Kernel modules for various i2c algorithms
DEPENDS:=kmod-i2c-core
- KCONFIG:=CONFIG_I2C_ALGOBIT
- FILES:=$(LINUX_DIR)/drivers/i2c/algos/*.$(LINUX_KMOD_SUFFIX)
+ KCONFIG:= \
+ CONFIG_I2C_ALGOBIT \
+ CONFIG_I2C_ALGOPCF \
+ CONFIG_I2C_ALGOPCA
+ FILES:= \
+ $(LINUX_DIR)/drivers/i2c/algos/i2c-algo-bit.$(LINUX_KMOD_SUFFIX) \
+ $(LINUX_DIR)/drivers/i2c/algos/i2c-algo-pcf.$(LINUX_KMOD_SUFFIX) \
+ $(LINUX_DIR)/drivers/i2c/algos/i2c-algo-pca.$(LINUX_KMOD_SUFFIX)
AUTOLOAD:=$(call AutoLoad,60,i2c-algo-bit i2c-algo-pcf i2c-algo-pca)
endef
@@ -40,10 +50,12 @@ define KernelPackage/i2c-scx200
DESCRIPTION:=Kernel module for SCX200 i2c bus
DEFAULT:=y if LINUX_2_6_X86_Soekris
DEPENDS:=kmod-i2c-core kmod-i2c-algos @LINUX_2_6_X86_Soekris
- KCONFIG:=CONFIG_SCx200_I2C
+ KCONFIG:= \
+ CONFIG_I2C_ISA \
+ CONFIG_SCx200_I2C
FILES:= \
- $(LINUX_DIR)/drivers/i2c/busses/scx200_i2c.$(LINUX_KMOD_SUFFIX) \
- $(LINUX_DIR)/drivers/i2c/busses/i2c-isa.$(LINUX_KMOD_SUFFIX)
+ $(LINUX_DIR)/drivers/i2c/busses/i2c-isa.$(LINUX_KMOD_SUFFIX) \
+ $(LINUX_DIR)/drivers/i2c/busses/scx200_i2c.$(LINUX_KMOD_SUFFIX)
AUTOLOAD:=$(call AutoLoad,70,i2c-isa scx200_i2c)
endef