X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/9fdbc2584272b13bb9671ae16e9545282ae52411..cccec9f4b412fdbd076e384bb1eb89e5edcee6f5:/package/kernel/modules/w1.mk diff --git a/package/kernel/modules/w1.mk b/package/kernel/modules/w1.mk index 0e7574259..68d502799 100644 --- a/package/kernel/modules/w1.mk +++ b/package/kernel/modules/w1.mk @@ -24,9 +24,10 @@ endef $(eval $(call KernelPackage,w1)) -define w1dep + +define KernelPackage/w1/Depends SUBMENU:=$(W1_MENU) - DEPENDS:=kmod-w1 $(1) + DEPENDS+=kmod-w1 $(1) endef @@ -34,11 +35,11 @@ endef # 1-wire masters # define KernelPackage/w1-master-gpio - $(call w1dep,@GPIO_SUPPORT) +$(call KernelPackage/w1/Depends,@GPIO_SUPPORT) TITLE:=GPIO 1-wire bus master driver KCONFIG:=CONFIG_W1_MASTER_GPIO FILES:=$(W1_MASTERS_DIR)/w1-gpio.$(LINUX_KMOD_SUFFIX) - AUTOLOAD:=$(call AutoLoad,51,w1-gpio) + AUTOLOAD:=$(call AutoLoad,60,w1-gpio) endef define KernelPackage/w1-master-gpio/description @@ -51,13 +52,12 @@ $(eval $(call KernelPackage,w1-master-gpio)) # # 1-wire slaves # -ifeq (1,1) define KernelPackage/w1-slave-therm - $(call w1dep,) +$(call KernelPackage/w1/Depends,) TITLE:=Thermal family implementation KCONFIG:=CONFIG_W1_SLAVE_THERM FILES:=$(W1_SLAVES_DIR)/w1_therm.$(LINUX_KMOD_SUFFIX) - AUTOLOAD:=$(call AutoLoad,52,w1_therm) + AUTOLOAD:=$(call AutoLoad,70,w1_therm) endef define KernelPackage/w1-slave-therm/description @@ -68,11 +68,11 @@ $(eval $(call KernelPackage,w1-slave-therm)) define KernelPackage/w1-slave-smem - $(call w1dep,) +$(call KernelPackage/w1/Depends,) TITLE:=Simple 64bit memory family implementation KCONFIG:=CONFIG_W1_SLAVE_SMEM FILES:=$(W1_SLAVES_DIR)/w1_smem.$(LINUX_KMOD_SUFFIX) - AUTOLOAD:=$(call AutoLoad,52,w1_smem) + AUTOLOAD:=$(call AutoLoad,70,w1_smem) endef define KernelPackage/w1-slave-smem/description @@ -82,13 +82,13 @@ endef $(eval $(call KernelPackage,w1-slave-smem)) define KernelPackage/w1-slave-ds2433 - $(call w1dep,) +$(call KernelPackage/w1/Depends,) TITLE:=Simple 64bit memory family implementation KCONFIG:= \ CONFIG_W1_SLAVE_DS2433 \ CONFIG_W1_SLAVE_DS2433_CRC=n FILES:=$(W1_SLAVES_DIR)/w1_ds2433.$(LINUX_KMOD_SUFFIX) - AUTOLOAD:=$(call AutoLoad,52,w1_ds2433) + AUTOLOAD:=$(call AutoLoad,70,w1_ds2433) endef define KernelPackage/w1-slave-ds2433/description @@ -99,13 +99,13 @@ $(eval $(call KernelPackage,w1-slave-ds2433)) define KernelPackage/w1-slave-ds2760 - $(call w1dep,) +$(call KernelPackage/w1/Depends,) TITLE:=Dallas 2760 battery monitor chip (HP iPAQ & others) KCONFIG:= \ CONFIG_W1_SLAVE_DS2760 \ CONFIG_W1_SLAVE_DS2433_CRC=n FILES:=$(W1_SLAVES_DIR)/w1_ds2760.$(LINUX_KMOD_SUFFIX) - AUTOLOAD:=$(call AutoLoad,52,w1_ds2760) + AUTOLOAD:=$(call AutoLoad,70,w1_ds2760) endef define KernelPackage/w1-slave-ds2760/description @@ -113,4 +113,3 @@ define KernelPackage/w1-slave-ds2760/description endef $(eval $(call KernelPackage,w1-slave-ds2760)) -endif \ No newline at end of file