X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/ea0b89dc023890e8b6d77cd1b43f901ad4c9ae36..18e62334f9bccd4b9560fb8da154a42ef2ab21eb:/package/kernel/modules/i2c.mk diff --git a/package/kernel/modules/i2c.mk b/package/kernel/modules/i2c.mk index f12dc9f70..a0b121c33 100644 --- a/package/kernel/modules/i2c.mk +++ b/package/kernel/modules/i2c.mk @@ -12,9 +12,8 @@ define KernelPackage/i2c-core TITLE:=I2C support DESCRIPTION:=Kernel modules for i2c support SUBMENU:=$(I2CMENU) - KCONFIG:=$(CONFIG_I2C_CORE) \ - $(CONFIG_I2C_DEV) - FILES:=$(MODULES_DIR)/kernel/drivers/i2c/*.$(LINUX_KMOD_SUFFIX) + KCONFIG:=$(CONFIG_I2C) + FILES:=$(LINUX_DIR)/drivers/i2c/*.$(LINUX_KMOD_SUFFIX) AUTOLOAD:=$(call AutoLoad,50,i2c-core i2c-dev) endef $(eval $(call KernelPackage,i2c-core)) @@ -25,7 +24,7 @@ define KernelPackage/i2c-algos DEPENDS:=kmod-i2c-core SUBMENU:=$(I2CMENU) KCONFIG:=$(CONFIG_I2C_ALGOBIT) - FILES:=$(MODULES_DIR)/kernel/drivers/i2c/algos/*.$(LINUX_KMOD_SUFFIX) + FILES:=$(LINUX_DIR)/drivers/i2c/algos/*.$(LINUX_KMOD_SUFFIX) AUTOLOAD:=$(call AutoLoad,60,i2c-algo-bit i2c-algo-pcf i2c-algo-pca) endef $(eval $(call KernelPackage,i2c-algos)) @@ -37,8 +36,20 @@ define KernelPackage/i2c-au1x00gpio DEPENDS:=kmod-i2c-core kmod-i2c-algos @LINUX_2_6_AU1000 SUBMENU:=$(I2CMENU) KCONFIG:=$(CONFIG_I2C_AU1X00GPIO) - FILES:=$(MODULES_DIR)/kernel/drivers/i2c/busses/i2c-au1x00gpio.$(LINUX_KMOD_SUFFIX) - AUTOLOAD:=$(call Autoload,70,i2c-au1x00gpio) + FILES:=$(LINUX_DIR)/drivers/i2c/busses/i2c-au1x00gpio.$(LINUX_KMOD_SUFFIX) + AUTOLOAD:=$(call Autoload,70,i2c-au1x00gpio) endef $(eval $(call KernelPackage,i2c-au1x00gpio)) +define KernelPackage/i2c-scx200 + TITLE:=SCX200 i2c support + 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 + SUBMENU:=$(I2CMENU) + KCONFIG:=$(CONFIG_I2C_SCX200) + FILES:=$(LINUX_DIR)/drivers/i2c/busses/scx200_i2c.$(LINUX_KMOD_SUFFIX) \ + $(LINUX_DIR)/drivers/i2c/busses/i2c-isa.$(LINUX_KMOD_SUFFIX) + AUTOLOAD:=$(call AutoLoad,70,scx200_i2c) +endef +$(eval $(call KernelPackage,i2c-scx200))