[openwrt/openwrt] kernel: modules: package Microchip SparX-5 switchdev driver as a module
LEDE Commits
lede-commits at lists.infradead.org
Wed Jan 21 07:25:45 PST 2026
robimarko pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/9a4c6550a7d9766ffd6ab39ae09e1260320c83fb
commit 9a4c6550a7d9766ffd6ab39ae09e1260320c83fb
Author: Robert Marko <robert.marko at sartura.hr>
AuthorDate: Wed Jan 21 15:26:53 2026 +0100
kernel: modules: package Microchip SparX-5 switchdev driver as a module
Package the Microchip SparX-5 switchdev driver as a module.
Signed-off-by: Robert Marko <robert.marko at sartura.hr>
---
package/kernel/linux/modules/netdevices.mk | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/package/kernel/linux/modules/netdevices.mk b/package/kernel/linux/modules/netdevices.mk
index 3ae753dc37..9258fdf220 100644
--- a/package/kernel/linux/modules/netdevices.mk
+++ b/package/kernel/linux/modules/netdevices.mk
@@ -2344,3 +2344,20 @@ define KernelPackage/enc28j60/description
endef
$(eval $(call KernelPackage,enc28j60))
+
+define KernelPackage/sparx5-switch
+ SUBMENU:=$(NETWORK_DEVICES_MENU)
+ TITLE:=Sparx5 switch driver
+ DEPENDS:=@TARGET_microchipsw +kmod-phylink +kmod-ptp
+ KCONFIG:= \
+ CONFIG_SPARX5_SWITCH \
+ CONFIG_LAN969X_SWITCH=y
+ FILES:=$(LINUX_DIR)/drivers/net/ethernet/microchip/sparx5/sparx5-switch.ko
+ AUTOLOAD:=$(call AutoProbe,sparx5-switch,1)
+endef
+
+define KernelPackage/sparx5-switch/description
+ This driver supports the Sparx5 network switch device.
+endef
+
+$(eval $(call KernelPackage,sparx5-switch))
More information about the lede-commits
mailing list