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>
This commit is contained in:
Schneider Azima 2025-11-28 05:34:02 -05:00 committed by Hauke Mehrtens
parent f190a5e842
commit c79c32b4e5

View File

@ -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))