From 217abe87ce0f6622e55e2616fdec0cec8d30710a Mon Sep 17 00:00:00 2001 From: Zoltan HERPAI Date: Mon, 4 Jul 2016 19:28:51 +0200 Subject: [PATCH] packages: add virtio-pci and virtio-mmio packages, fix 9pnet dependencies Signed-off-by: Zoltan HERPAI --- package/kernel/linux/modules/netsupport.mk | 2 +- package/kernel/linux/modules/other.mk | 36 ++++++++++++++++++++++ 2 files changed, 37 insertions(+), 1 deletion(-) diff --git a/package/kernel/linux/modules/netsupport.mk b/package/kernel/linux/modules/netsupport.mk index 919ddcf819..032e085c2f 100644 --- a/package/kernel/linux/modules/netsupport.mk +++ b/package/kernel/linux/modules/netsupport.mk @@ -1029,7 +1029,7 @@ $(eval $(call KernelPackage,mpls)) define KernelPackage/9pnet SUBMENU:=$(NETWORK_SUPPORT_MENU) TITLE:=Plan 9 Resource Sharing Support (9P2000) - DEPENDS:=@PCI_SUPPORT + DEPENDS:=@PCI_SUPPORT +kmod-virtio-pci KCONFIG:= \ CONFIG_NET_9P=m \ CONFIG_NET_9P_DEBUG=n \ diff --git a/package/kernel/linux/modules/other.mk b/package/kernel/linux/modules/other.mk index 301460e416..885f40a2e6 100644 --- a/package/kernel/linux/modules/other.mk +++ b/package/kernel/linux/modules/other.mk @@ -1072,3 +1072,39 @@ define KernelPackage/bmp085-spi/description endef $(eval $(call KernelPackage,bmp085-spi)) + + +define KernelPackage/virtio-pci + SUBMENU:=$(OTHER_MENU) + TITLE:=Virtio PCI support + KCONFIG:= CONFIG_VIRTIO CONFIG_VIRTIO_PCI + FILES:=\ + $(LINUX_DIR)/drivers/virtio/virtio_pci.ko \ + $(LINUX_DIR)/drivers/virtio/virtio.ko \ + $(LINUX_DIR)/drivers/virtio/virtio_ring.ko + AUTOLOAD:=$(call AutoProbe,virtio virtio_ring virtio_pci) +endef +define KernelPackage/virtio-pci/description + This driver adds virtio PCI support. +endef + +$(eval $(call KernelPackage,virtio-pci)) + + +define KernelPackage/virtio-mmio + SUBMENU:=$(OTHER_MENU) + TITLE:=Virtio MMIO support + KCONFIG:= CONFIG_VIRTIO CONFIG_VIRTIO_MMIO + FILES:= \ + $(LINUX_DIR)/drivers/virtio/virtio.ko \ + $(LINUX_DIR)/drivers/virtio/virtio_ring.ko \ + $(LINUX_DIR)/drivers/virtio/virtio_mmio.ko + AUTOLOAD:=$(call AutoProbe,virtio virtio_ring virtio_mmio) +endef +define KernelPackage/virtio-mmio/description + This driver adds virtio MMIO support. +endef + +$(eval $(call KernelPackage,virtio-mmio)) + + -- 2.35.1