[PATCH 3/6] kernel: add package kmod-multiplexer
Mauri Sandberg
maukka at ext.kapsi.fi
Thu Nov 18 11:04:25 PST 2021
Signed-off-by: Mauri Sandberg <maukka at ext.kapsi.fi>
---
package/kernel/linux/modules/multiplexer.mk | 34 +++++++++++++++++++++
1 file changed, 34 insertions(+)
create mode 100644 package/kernel/linux/modules/multiplexer.mk
diff --git a/package/kernel/linux/modules/multiplexer.mk b/package/kernel/linux/modules/multiplexer.mk
new file mode 100644
index 0000000000..135fc62c6d
--- /dev/null
+++ b/package/kernel/linux/modules/multiplexer.mk
@@ -0,0 +1,34 @@
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+MENU_TITLE:=Multiplexer Support
+
+define KernelPackage/mux-core
+ SUBMENU:=$(MENU_TITLE)
+ TITLE:=Multiplexer Support
+ KCONFIG:=CONFIG_MULTIPLEXER
+ FILES:=$(LINUX_DIR)/drivers/mux/mux-core.ko
+ AUTOLOAD:=$(call AutoLoad,25,mux-core,1)
+endef
+
+define KernelPackage/mux-core/description
+ Kernel module for multiplexer support
+endef
+
+$(eval $(call KernelPackage,mux-core))
+
+define KernelPackage/mux-gpio
+ SUBMENU:=$(MENU_TITLE)
+ TITLE:=GPIO-controlled Multiplexer controller
+ KCONFIG:=CONFIG_MUX_GPIO
+ DEPENDS:=@GPIO_SUPPORT kmod-mux-core
+ FILES:=$(LINUX_DIR)/drivers/mux/mux-gpio.ko
+ AUTOLOAD:=$(call AutoLoad,25,mux-gpio,1)
+endef
+
+define KernelPackage/mux-gpio/description
+ Kernel modules for GPIO-controlled Multiplexer controller
+endef
+
+$(eval $(call KernelPackage,mux-gpio))
--
2.25.1
More information about the openwrt-devel
mailing list