[openwrt/openwrt] mediatek: build rtl8367s_gsw as a kernel module

LEDE Commits lede-commits at lists.infradead.org
Sun Nov 30 14:02:21 PST 2025


hauke pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/c79c32b4e5d6209fb85f5838b8b17f0d6998a523

commit c79c32b4e5d6209fb85f5838b8b17f0d6998a523
Author: Schneider Azima <Schneider-Azima12 at protonmail.com>
AuthorDate: Fri Nov 28 05:34:02 2025 -0500

    mediatek: build rtl8367s_gsw as a kernel module
    
    The RTL8367S_GSW config for filogic target is not set by default.
    This switch model can be recognized by multiple drivers. Configure it as an optional module instead of default set in config.
    
    Signed-off-by: Schneider Azima <Schneider-Azima12 at protonmail.com>
    Link: https://github.com/openwrt/openwrt/pull/19187
    Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
---
 target/linux/mediatek/modules.mk | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/target/linux/mediatek/modules.mk b/target/linux/mediatek/modules.mk
index ade8d60ab3..3a97082111 100644
--- a/target/linux/mediatek/modules.mk
+++ b/target/linux/mediatek/modules.mk
@@ -37,3 +37,17 @@ define KernelPackage/iio-mt6577-auxadc
   $(call AddDepends/iio)
 endef
 $(eval $(call KernelPackage,iio-mt6577-auxadc))
+
+define KernelPackage/switch-rtl8367s
+  SUBMENU:=Network Devices
+  TITLE:=Realtek RTL8367S switch support
+  KCONFIG:= \
+	CONFIG_RTL8367S_GSW \
+	CONFIG_SWCONFIG=y
+  DEPENDS:=@TARGET_mediatek +kmod-swconfig
+  FILES:= \
+	$(LINUX_DIR)/drivers/net/phy/rtk/rtl8367s_gsw.ko
+  AUTOLOAD:=$(call AutoProbe,rtl8367s_gsw,1)
+endef
+
+$(eval $(call KernelPackage,switch-rtl8367s))




More information about the lede-commits mailing list