kernel/modules: add kmod-switch-rtl8306 module
authorMartin Schiller <ms@dev.tdt.de>
Wed, 26 Jul 2017 10:02:25 +0000 (12:02 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Sat, 9 Jun 2018 20:39:17 +0000 (22:39 +0200)
Add kernel module for kmod-switch-rtl8306.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
Signed-off-by: Martin Schiller <ms@dev.tdt.de>
package/kernel/linux/modules/netdevices.mk

index 372cb47c60e2834f9226b7a797f5e4522dfb63e0..aa28c8e7b9f1c67ea6c6e54ac033d65c24ce802f 100644 (file)
@@ -226,6 +226,22 @@ endef
 $(eval $(call KernelPackage,switch-ip17xx))
 
 
+define KernelPackage/switch-rtl8306
+  SUBMENU:=$(NETWORK_DEVICES_MENU)
+  TITLE:=Realtek RTL8306S switch support
+  DEPENDS:=+kmod-swconfig
+  KCONFIG:=CONFIG_RTL8306_PHY
+  FILES:=$(LINUX_DIR)/drivers/net/phy/rtl8306.ko
+  AUTOLOAD:=$(call AutoLoad,43,rtl8306)
+endef
+
+define KernelPackage/switch-rtl8306/description
+ Realtek RTL8306S switch support
+endef
+
+$(eval $(call KernelPackage,switch-rtl8306))
+
+
 define KernelPackage/switch-rtl8366-smi
   SUBMENU:=$(NETWORK_DEVICES_MENU)
   TITLE:=Realtek RTL8366 SMI switch interface support