[openwrt/openwrt] kernel: Add kmod-mfd
LEDE Commits
lede-commits at lists.infradead.org
Mon Jul 8 12:17:23 PDT 2024
hauke pushed a commit to openwrt/openwrt.git, branch openwrt-23.05:
https://git.openwrt.org/ffe97a61fcb00b022c699f7baf68ae208c94546c
commit ffe97a61fcb00b022c699f7baf68ae208c94546c
Author: Hauke Mehrtens <hauke at hauke-m.de>
AuthorDate: Sat Jun 29 18:23:13 2024 +0200
kernel: Add kmod-mfd
Package the mfd-core.ko kernel module. It is selected by the
kmod-hwmon-gsc already.
Link: https://github.com/openwrt/openwrt/pull/15833
Signed-off-by: Christian Marangi <ansuelsmth at gmail.com>
(cherry picked from commit 8b4fd1c0dece936dc2c79f2a17d824512e7e7df3)
Link: https://github.com/openwrt/openwrt/pull/15898
Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
---
package/kernel/linux/modules/hwmon.mk | 2 +-
package/kernel/linux/modules/other.mk | 12 ++++++++++++
2 files changed, 13 insertions(+), 1 deletion(-)
diff --git a/package/kernel/linux/modules/hwmon.mk b/package/kernel/linux/modules/hwmon.mk
index 29392548d4..b4ddcfdde8 100644
--- a/package/kernel/linux/modules/hwmon.mk
+++ b/package/kernel/linux/modules/hwmon.mk
@@ -116,7 +116,7 @@ define KernelPackage/hwmon-gsc
$(LINUX_DIR)/drivers/mfd/gateworks-gsc.ko \
$(LINUX_DIR)/drivers/hwmon/gsc-hwmon.ko
AUTOLOAD:=$(call AutoLoad,20,gsc-hwmon,1)
- $(call AddDepends/hwmon,+kmod-i2c-core)
+ $(call AddDepends/hwmon,+kmod-i2c-core +kmod-mfd)
endef
define KernelPackage/hwmon-gsc/description
diff --git a/package/kernel/linux/modules/other.mk b/package/kernel/linux/modules/other.mk
index 9c10b97501..5523829612 100644
--- a/package/kernel/linux/modules/other.mk
+++ b/package/kernel/linux/modules/other.mk
@@ -780,6 +780,18 @@ endef
$(eval $(call KernelPackage,rtc-s35390a))
+define KernelPackage/mfd
+ SUBMENU:=$(OTHER_MENU)
+ TITLE:=Multifunction device drivers
+ HIDDEN:=1
+ KCONFIG:=CONFIG_MFD_CORE
+ FILES:=$(LINUX_DIR)/drivers/mfd/mfd-core.ko
+ AUTOLOAD:=$(call AutoLoad,10,mfd-core)
+endef
+
+$(eval $(call KernelPackage,mfd))
+
+
define KernelPackage/mtdtests
SUBMENU:=$(OTHER_MENU)
TITLE:=MTD subsystem tests
More information about the lede-commits
mailing list