From: Jo-Philipp Wich Date: Fri, 21 Jun 2024 12:01:09 +0000 (+0200) Subject: linux: package virtio-vsockets driver X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=6f7c6234b2df639525e03b6f3663ff6f049abaed;p=openwrt%2Fstaging%2Fjow.git 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 --- 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))