X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=package%2Fkernel%2Flinux%2Fmodules%2Fhwmon.mk;h=effae14a207acf11d3986017a048ca232b2e3fd0;hb=42d2eb76285f396c914ee6f17474a1e7788cfb36;hp=5408b6d5a25beaba3fc66793ed3e1ca25642fa0f;hpb=a2ed38f7b6e13d3ea4b4a389d48536e6243fcaa9;p=openwrt%2Fstaging%2Fmkresin.git diff --git a/package/kernel/linux/modules/hwmon.mk b/package/kernel/linux/modules/hwmon.mk index 5408b6d5a2..effae14a20 100644 --- a/package/kernel/linux/modules/hwmon.mk +++ b/package/kernel/linux/modules/hwmon.mk @@ -46,7 +46,6 @@ $(eval $(call KernelPackage,hwmon-vid)) define KernelPackage/hwmon-adt7410 TITLE:=ADT7410 monitoring support -ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),ge,3.10.0)),1) KCONFIG:= \ CONFIG_SENSORS_ADT7X10 \ CONFIG_SENSORS_ADT7410 @@ -54,12 +53,7 @@ ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),ge,3.10.0)),1) $(LINUX_DIR)/drivers/hwmon/adt7x10.ko \ $(LINUX_DIR)/drivers/hwmon/adt7410.ko AUTOLOAD:=$(call AutoLoad,60,adt7x10 adt7410) -else - KCONFIG:=CONFIG_SENSORS_ADT7410 - FILES:=$(LINUX_DIR)/drivers/hwmon/adt7410.ko - AUTOLOAD:=$(call AutoLoad,60,adt7410) -endif - $(call AddDepends/hwmon,+kmod-i2c-core @!(LINUX_3_3||LINUX_3_6)) + $(call AddDepends/hwmon,+kmod-i2c-core) endef define KernelPackage/hwmon-adt7410/description @@ -89,7 +83,7 @@ define KernelPackage/hwmon-ina2xx KCONFIG:=CONFIG_SENSORS_INA2XX FILES:=$(LINUX_DIR)/drivers/hwmon/ina2xx.ko AUTOLOAD:=$(call AutoProbe,ina2xx) - $(call AddDepends/hwmon,+kmod-i2c-core) + $(call AddDepends/hwmon,+kmod-i2c-core +LINUX_4_4:kmod-regmap) endef define KernelPackage/hwmon-ina2xx/description @@ -235,7 +229,7 @@ define KernelPackage/hwmon-w83627hf KCONFIG:=CONFIG_SENSORS_W83627HF FILES:=$(LINUX_DIR)/drivers/hwmon/w83627hf.ko AUTOLOAD:=$(call AutoLoad,50,w83627hf) - $(call AddDepends/hwmon,@TARGET_rdc||TARGET_x86 +kmod-hwmon-vid) + $(call AddDepends/hwmon,@TARGET_x86 +kmod-hwmon-vid) endef define KernelPackage/hwmon-w83627hf/description @@ -280,7 +274,7 @@ define KernelPackage/hwmon-gpiofan KCONFIG:=CONFIG_SENSORS_GPIO_FAN FILES:=$(LINUX_DIR)/drivers/hwmon/gpio-fan.ko AUTOLOAD:=$(call AutoLoad,60,gpio-fan) - $(call AddDepends/hwmon,+kmod-i2c-core) + $(call AddDepends/hwmon,+kmod-i2c-core +PACKAGE_kmod-thermal:kmod-thermal) endef define KernelPackage/hwmon-gpiofan/description @@ -295,8 +289,7 @@ define KernelPackage/hwmon-pwmfan KCONFIG:=CONFIG_SENSORS_PWM_FAN FILES:=$(LINUX_DIR)/drivers/hwmon/pwm-fan.ko AUTOLOAD:=$(call AutoLoad,60,pwm-fan) - $(call AddDepends/hwmon,) - DEPENDS+=@!LINUX_3_3 @!LINUX_3_8 @!LINUX_3_10 @!LINUX_3_14 + $(call AddDepends/hwmon, +PACKAGE_kmod-thermal:kmod-thermal) endef define KernelPackage/hwmon-pwmfan/description @@ -311,7 +304,7 @@ define KernelPackage/hwmon-k10temp KCONFIG:=CONFIG_SENSORS_K10TEMP FILES:=$(LINUX_DIR)/drivers/hwmon/k10temp.ko AUTOLOAD:=$(call AutoLoad,60,k10temp) - $(call AddDepends/hwmon,@PCI_SUPPORT @(x86||x86_64)) + $(call AddDepends/hwmon,@PCI_SUPPORT @TARGET_x86) endef define KernelPackage/hwmon-k10temp/description