From 6f7c6234b2df639525e03b6f3663ff6f049abaed Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Fri, 21 Jun 2024 14:01:09 +0200 Subject: [PATCH] linux: package virtio-vsockets driver Add the necessary definitions to package the virtio-vsockets driver, providing AF_VSOCK support for virtual machine guests. Signed-off-by: Jo-Philipp Wich --- package/kernel/linux/modules/virt.mk | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/package/kernel/linux/modules/virt.mk b/package/kernel/linux/modules/virt.mk index 9286ad489c..15e64e83c4 100644 --- a/package/kernel/linux/modules/virt.mk +++ b/package/kernel/linux/modules/virt.mk @@ -139,3 +139,26 @@ define KernelPackage/vhost-net endef $(eval $(call KernelPackage,vhost-net)) + + +define KernelPackage/vsock + SUBMENU:=Virtualization + TITLE:=Virtual Socket protocol (base) + KCONFIG:=CONFIG_VSOCKETS + FILES:=$(LINUX_DIR)/net/vmw_vsock/vsock.ko + AUTOLOAD:=$(call AutoProbe,vhost vsock) +endef + +$(eval $(call KernelPackage,vsock)) + + +define KernelPackage/virtio-vsockets + SUBMENU:=Virtualization + TITLE:=virtio transport for Virtual Sockets + DEPENDS:=+kmod-vsock + KCONFIG:=CONFIG_VIRTIO_VSOCKETS + FILES:=$(LINUX_DIR)/net/vmw_vsock/vmw_vsock_virtio_transport.ko + AUTOLOAD:=$(call AutoProbe,vmw_vsock_virtio_transport) +endef + +$(eval $(call KernelPackage,virtio-vsockets)) -- 2.30.2