X-Git-Url: https://git.archive.openwrt.org/?a=blobdiff_plain;f=package%2Fkernel%2Fmodules%2Fi2c.mk;h=101466f096478147bc42a7098e9613ccafddd1c2;hb=eb628a641c8dbcb7857e6aa18b95f7e17267f39b;hp=e1adafdb0c52965c585c4eb1b4c9189a637186c5;hpb=a2cf5a31fb7ca6f0e9fc37762dec4da874c66f22;p=openwrt.git diff --git a/package/kernel/modules/i2c.mk b/package/kernel/modules/i2c.mk index e1adafdb0c..101466f096 100644 --- a/package/kernel/modules/i2c.mk +++ b/package/kernel/modules/i2c.mk @@ -8,7 +8,7 @@ I2C_MENU:=I2C support ModuleConfVar=$(word 1,$(subst :,$(space),$(1))) -ModuleFullPath=$(if $(findstring y,$($(call ModuleConfVar,$(1)))),,$(LINUX_DIR)/$(word 2,$(subst :,$(space),$(1))).ko) +ModuleFullPath=$(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),$(basename $(notdir $(call ModuleFullPath,$(mod))))),$(3)) @@ -22,6 +22,7 @@ endef I2C_CORE_MODULES:= \ CONFIG_I2C:drivers/i2c/i2c-core \ + CONFIG_OF_I2C:drivers/of/of_i2c \ CONFIG_I2C_CHARDEV:drivers/i2c/i2c-dev define KernelPackage/i2c-core @@ -100,23 +101,6 @@ endef $(eval $(call KernelPackage,i2c-gpio)) - -OF_I2C_MODULES:=\ - CONFIG_OF_I2C:drivers/of/of_i2c - -define KernelPackage/of-i2c - $(call i2c_defaults,$(OF_I2C_MODULES),58) - TITLE:=OpenFirmware I2C accessors - DEPENDS:=@TARGET_ppc40x||TARGET_ppc4xx||TARGET_mpc52xx||TARGET_mpc83xx||TARGET_mpc85xx||TARGET_mvebu \ - kmod-i2c-core -endef - -define KernelPackage/of-i2c/description - Kernel module for OpenFirmware I2C accessors. -endef - -$(eval $(call KernelPackage,of-i2c)) - I2C_MPC_MODULES:=\ CONFIG_I2C_MPC:drivers/i2c/busses/i2c-mpc