[OpenWrt-Devel] [PATCH] kernel: Fix kmod-w1 dependency on hwmon-core for 4.19
Bjørn Mork
bjorn at mork.no
Tue Dec 18 03:53:36 EST 2018
Petr Štetiar <ynezz at true.cz> writes:
> kmod-w1 depends on kmod-hwmon-core since Linux 4.14
>
> Signed-off-by: Petr Štetiar <ynezz at true.cz>
> ---
> package/kernel/linux/modules/w1.mk | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/package/kernel/linux/modules/w1.mk b/package/kernel/linux/modules/w1.mk
> index e936a28..d9f20c7 100644
> --- a/package/kernel/linux/modules/w1.mk
> +++ b/package/kernel/linux/modules/w1.mk
> @@ -14,7 +14,7 @@ define KernelPackage/w1
> TITLE:=Dallas's 1-wire support
> KCONFIG:=CONFIG_W1
> FILES:=$(LINUX_DIR)/drivers/w1/wire.ko
> - DEPENDS:=+LINUX_4_14:kmod-hwmon-core
> + DEPENDS:=+LINUX_4_14:kmod-hwmon-core +LINUX_4_19:kmod-hwmon-core
> endef
>
> define KernelPackage/w1/description
The futureproof(?) way to do this appears to be
DEPENDS:=+!(LINUX_3_18||LINUX_4_9):kmod-hwmon-core
See for example commit 31abe083311e ("kernel: Add missing dependency to
kmod-regmap")
BTW, a similar dependency is missing for rtc-ds1307.
Bjørn
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list