This allows to enable rtl8366 switches family support, which are optional (present on few boards). Tested on ramips target (both rt288x and rt305x).
Signed-off-by: Roman Yeryomin <[email protected]> Index: package/kernel/modules/netdevices.mk =================================================================== --- a/package/kernel/modules/netdevices.mk (revision 28247) +++ b/package/kernel/modules/netdevices.mk (working copy) @@ -133,6 +133,45 @@ $(eval $(call KernelPackage,switch-ip17xx)) +define KernelPackage/switch-rtl8366_smi + SUBMENU:=$(NETWORK_DEVICES_MENU) + TITLE:=Realtek RTL8366 SMI switch interface support + DEPENDS:=+kmod-swconfig + KCONFIG:=CONFIG_RTL8366_SMI=y +endef + +define KernelPackage/switch-rtl8366_smi/description + Realtek RTL8366 series SMI switch interface support +endef + +$(eval $(call KernelPackage,switch-rtl8366_smi)) + +define KernelPackage/switch-rtl8366rb + SUBMENU:=$(NETWORK_DEVICES_MENU) + TITLE:=Realtek RTL8366RB switch support + DEPENDS:=+kmod-switch-rtl8366_smi + KCONFIG:=CONFIG_RTL8366RB_PHY=y +endef + +define KernelPackage/switch-rtl8366rb/description + Realtek RTL8366RB switch support +endef + +$(eval $(call KernelPackage,switch-rtl8366rb)) + +define KernelPackage/switch-rtl8366s + SUBMENU:=$(NETWORK_DEVICES_MENU) + TITLE:=Realtek RTL8366S switch support + DEPENDS:=+kmod-switch-rtl8366_smi + KCONFIG:=CONFIG_RTL8366S_PHY=y +endef + +define KernelPackage/switch-rtl8366s/description + Realtek RTL8366S switch support +endef + +$(eval $(call KernelPackage,switch-rtl8366s)) + define KernelPackage/natsemi SUBMENU:=$(NETWORK_DEVICES_MENU) TITLE:=National Semiconductor DP8381x series _______________________________________________ openwrt-devel mailing list [email protected] https://lists.openwrt.org/mailman/listinfo/openwrt-devel
