summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSchneider Azima2025-11-28 10:34:02 +0000
committerHauke Mehrtens2025-11-30 21:59:28 +0000
commitc79c32b4e5d6209fb85f5838b8b17f0d6998a523 (patch)
tree5bd8b914290bbb6b9fa35a2f1569a84e7de144e2
parentf190a5e842d687cf53cce909ac22a77d9d94c683 (diff)
downloadopenwrt-c79c32b4e5d6209fb85f5838b8b17f0d6998a523.tar.gz
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@protonmail.com> Link: https://github.com/openwrt/openwrt/pull/19187 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
-rw-r--r--target/linux/mediatek/modules.mk14
1 files changed, 14 insertions, 0 deletions
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))