Strip .ko suffix from module name.
Fix typo in name of i2c-scx200-acb module to be loaded.
Steve
Signed-off-by: Steve Brown <sbrown@cortland.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17288
3c298f89-4303-0410-b956-
a3cf2f4a3e73
ModuleFullPath=$(if $(findstring y,$($(call ModuleConfVar,$(1)))),,$(LINUX_DIR)/$(word 2,$(subst :,$(space),$(1))).$(LINUX_KMOD_SUFFIX))
ModuleKconfig=$(foreach mod,$(1),$(call ModuleConfVar,$(mod)))
ModuleFiles=$(foreach mod,$(1),$(call ModuleFullPath,$(mod)))
ModuleFullPath=$(if $(findstring y,$($(call ModuleConfVar,$(1)))),,$(LINUX_DIR)/$(word 2,$(subst :,$(space),$(1))).$(LINUX_KMOD_SUFFIX))
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)
define i2c_defaults
SUBMENU:=$(I2C_MENU)
I2C_SCX200_ACB_MODULES:=\
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)
define KernelPackage/i2c-scx200-acb
$(call i2c_defaults,$(I2C_SCX200_ACB_MODULES),59)