summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenneth Kasilag2025-10-17 02:07:25 +0000
committerHauke Mehrtens2025-10-17 23:31:02 +0000
commit010c08ceb553af2ef18c13cd4412b056a87de4cd (patch)
tree0f7c8796704ce6916c0313438fb4048b7ab1006f
parent478fcd8fe6e590d4e38fae9c0dfc3a72cf6ae2a5 (diff)
downloadopenwrt-010c08ceb553af2ef18c13cd4412b056a87de4cd.tar.gz
kernel: rtl8261n: allow selection as package
Previously, devices would have to select `CONFIG_RTL8261N_PHY=Y` in the whole target's kernel config. Now that this driver is becoming usable for devices other than Realtek switches, allow packaging this driver separately. Signed-off-by: Kenneth Kasilag <kenneth@kasilag.me> Link: https://github.com/openwrt/openwrt/pull/20429 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
-rw-r--r--package/kernel/linux/modules/netdevices.mk16
1 files changed, 16 insertions, 0 deletions
diff --git a/package/kernel/linux/modules/netdevices.mk b/package/kernel/linux/modules/netdevices.mk
index 522e76d180..77fe0c153b 100644
--- a/package/kernel/linux/modules/netdevices.mk
+++ b/package/kernel/linux/modules/netdevices.mk
@@ -525,6 +525,22 @@ endef
$(eval $(call KernelPackage,phy-realtek))
+define KernelPackage/phy-rtl8261n
+ SUBMENU:=$(NETWORK_DEVICES_MENU)
+ TITLE:=Realtek RTL8261N NBASE-T PHY driver
+ KCONFIG:=CONFIG_RTL8261N_PHY
+ DEPENDS:=+kmod-libphy
+ FILES:=$(LINUX_DIR)/drivers/net/phy/rtl8261n/rtl8261n.ko
+ AUTOLOAD:=$(call AutoLoad,18,rtl8261n,1)
+endef
+
+define KernelPackage/phy-rtl8261n/description
+ Supports the Realtek 8261N NBASE-T PHY.
+endef
+
+$(eval $(call KernelPackage,phy-rtl8261n))
+
+
define KernelPackage/phy-smsc
SUBMENU:=$(NETWORK_DEVICES_MENU)
TITLE:=SMSC PHY driver