Skip to content

Commit 010c08c

Browse files
hurrianhauke
authored andcommitted
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: openwrt#20429 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
1 parent 478fcd8 commit 010c08c

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

package/kernel/linux/modules/netdevices.mk

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -525,6 +525,22 @@ endef
525525
$(eval $(call KernelPackage,phy-realtek))
526526

527527

528+
define KernelPackage/phy-rtl8261n
529+
SUBMENU:=$(NETWORK_DEVICES_MENU)
530+
TITLE:=Realtek RTL8261N NBASE-T PHY driver
531+
KCONFIG:=CONFIG_RTL8261N_PHY
532+
DEPENDS:=+kmod-libphy
533+
FILES:=$(LINUX_DIR)/drivers/net/phy/rtl8261n/rtl8261n.ko
534+
AUTOLOAD:=$(call AutoLoad,18,rtl8261n,1)
535+
endef
536+
537+
define KernelPackage/phy-rtl8261n/description
538+
Supports the Realtek 8261N NBASE-T PHY.
539+
endef
540+
541+
$(eval $(call KernelPackage,phy-rtl8261n))
542+
543+
528544
define KernelPackage/phy-smsc
529545
SUBMENU:=$(NETWORK_DEVICES_MENU)
530546
TITLE:=SMSC PHY driver

0 commit comments

Comments
 (0)