aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel/linux/modules/netdevices.mk
diff options
context:
space:
mode:
authorPetr Štetiar <ynezz@true.cz>2022-04-11 18:36:20 +0200
committerPetr Štetiar <ynezz@true.cz>2022-04-15 07:11:18 +0200
commit8361946e1b940d060e902e381e785575f44b6e57 (patch)
tree072584a224099291208a28aa56b468fbf7dbae93 /package/kernel/linux/modules/netdevices.mk
parent0225469dcdd7d2d3f9b69b2d0e2f1e0648aad15b (diff)
downloadupstream-8361946e1b940d060e902e381e785575f44b6e57.tar.gz
upstream-8361946e1b940d060e902e381e785575f44b6e57.tar.bz2
upstream-8361946e1b940d060e902e381e785575f44b6e57.zip
kernel: netdevices: add generic selftests module
Upstream in commit 3e1e58d64c3d ("net: add generic selftest support") in version 5.13 added generic selftests module and usb-net-asix already depends on it, in version 5.18 via commit 1710b52d7c13 ("net: usb: smsc95xx: add generic selftest support") it will be used by usb-net-smsc95xx as well. Signed-off-by: Petr Štetiar <ynezz@true.cz>
Diffstat (limited to 'package/kernel/linux/modules/netdevices.mk')
-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 18fbf498dd..ec470be5ee 100644
--- a/package/kernel/linux/modules/netdevices.mk
+++ b/package/kernel/linux/modules/netdevices.mk
@@ -1224,6 +1224,22 @@ endef
$(eval $(call KernelPackage,mlx5-core))
+define KernelPackage/net-selftests
+ SUBMENU:=$(NETWORK_DEVICES_MENU)
+ DEPENDS:=+kmod-libphy
+ TITLE:=Network generic selftest support
+ KCONFIG:=CONFIG_NET_SELFTESTS
+ FILES:=$(LINUX_DIR)/net/core/selftests.ko
+ AUTOLOAD:=$(call AutoLoad,99,selftests)
+endef
+
+define KernelPackage/net-selftests/description
+ Kernel modules for the generic selftest support
+endef
+
+$(eval $(call KernelPackage,net-selftests))
+
+
define KernelPackage/qlcnic
SUBMENU:=$(NETWORK_DEVICES_MENU)
DEPENDS:=@PCI_SUPPORT +kmod-hwmon-core