kernel: netdevices: add rtl8367 module
authorLuiz Angelo Daros de Luca <luizluca@gmail.com>
Tue, 26 Apr 2022 22:28:34 +0000 (19:28 -0300)
committerChristian Marangi <ansuelsmth@gmail.com>
Fri, 1 Jul 2022 18:22:52 +0000 (20:22 +0200)
Create a package for rtl8367 to use it as loadable module instead of a
builtin one.

Signed-off-by: Luiz Angelo Daros de Luca <luizluca@gmail.com>
package/kernel/linux/modules/netdevices.mk

index 7b8e808e6d6b547d2505ccd2f62820828d35a02c..cc1588514892bf9d4773ec5fa7afa43ebf31e478 100644 (file)
@@ -399,6 +399,22 @@ endef
 $(eval $(call KernelPackage,switch-rtl8366s))
 
 
+define KernelPackage/switch-rtl8367
+  SUBMENU:=$(NETWORK_DEVICES_MENU)
+  TITLE:=Realtek RTL8367 switch support
+  DEPENDS:=+kmod-switch-rtl8366-smi
+  KCONFIG:=CONFIG_RTL8367_PHY
+  FILES:=$(LINUX_DIR)/drivers/net/phy/rtl8367.ko
+  AUTOLOAD:=$(call AutoLoad,43,rtl8367,1)
+endef
+
+define KernelPackage/switch-rtl8367/description
+ Realtek RTL8367 switch support
+endef
+
+$(eval $(call KernelPackage,switch-rtl8367))
+
+
 define KernelPackage/switch-rtl8367b
   SUBMENU:=$(NETWORK_DEVICES_MENU)
   TITLE:=Realtek RTL8367R/B switch support