X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/678b2dfee38eaa67a5bdbb355677882e99d5ee24..e20ce563646f920c27bc8c56ee217d8b7e5e9641:/package/kernel/modules/i2c.mk diff --git a/package/kernel/modules/i2c.mk b/package/kernel/modules/i2c.mk index 78c364db4..9612f965f 100644 --- a/package/kernel/modules/i2c.mk +++ b/package/kernel/modules/i2c.mk @@ -8,10 +8,10 @@ I2C_MENU:=I2C support ModuleConfVar=$(word 1,$(subst :,$(space),$(1))) -ModuleFullPath=$(if $(findstring y,$($(call ModuleConfVar,$(1)))),,$(LINUX_DIR)/$(word 2,$(subst :,$(space),$(1))).$(LINUX_KMOD_SUFFIX)) +ModuleFullPath=$(if $(findstring y,$($(call ModuleConfVar,$(1)))),,$(LINUX_DIR)/$(word 2,$(subst :,$(space),$(1))).ko) ModuleKconfig=$(foreach mod,$(1),$(call ModuleConfVar,$(mod))) ModuleFiles=$(foreach mod,$(1),$(call ModuleFullPath,$(mod))) -ModuleAuto=$(call AutoLoad,$(1),$(foreach mod,$(2),$(notdir $(call ModuleFullPath,$(mod)))),$(3)) +ModuleAuto=$(call AutoLoad,$(1),$(foreach mod,$(2),$(basename $(notdir $(call ModuleFullPath,$(mod))))),$(3)) define i2c_defaults SUBMENU:=$(I2C_MENU) @@ -27,7 +27,7 @@ I2C_CORE_MODULES:= \ define KernelPackage/i2c-core $(call i2c_defaults,$(I2C_CORE_MODULES),51) TITLE:=I2C support - DEPENDS:=@LINUX_2_6 + DEPENDS:=@!TARGET_etrax endef define KernelPackage/i2c-core/description @@ -121,7 +121,7 @@ $(eval $(call KernelPackage,i2c-scx200)) I2C_SCX200_ACB_MODULES:=\ - CONFIG_SCx200_ACB:drivers/i2c/busses/scx200_i2c + CONFIG_SCx200_ACB:drivers/i2c/busses/scx200_acb define KernelPackage/i2c-scx200-acb $(call i2c_defaults,$(I2C_SCX200_ACB_MODULES),59) @@ -167,3 +167,19 @@ define KernelPackage/i2c-ibm-iic/description endef $(eval $(call KernelPackage,i2c-ibm-iic)) + +I2C_MV64XXX_MODULES:=\ + CONFIG_I2C_MV64XXX:drivers/i2c/busses/i2c-mv64xxx + +define KernelPackage/i2c-mv64xxx + $(call i2c_defaults,$(I2C_MV64XXX_MODULES),59) + TITLE:=Orion Platform I2C interface support + DEPENDS:=@TARGET_kirkwood||TARGET_orion +kmod-i2c-core +endef + +define KernelPackage/i2c-mv64xxx/description + Kernel module for I2C interface on the Kirkwood and Orion + family processors. +endef + +$(eval $(call KernelPackage,i2c-mv64xxx))