X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/610d77501eb192886834d4beba983b5a211bf7dc..3f4f47d3528c3334408ca4802b45a3d5d1c0cf35:/package/kernel/modules/virtual.mk diff --git a/package/kernel/modules/virtual.mk b/package/kernel/modules/virtual.mk index f988c163c..05eb4965b 100644 --- a/package/kernel/modules/virtual.mk +++ b/package/kernel/modules/virtual.mk @@ -7,6 +7,54 @@ VIRTUAL_MENU:=Virtualization Support + +define KernelPackage/virtio-balloon + SUBMENU:=$(VIRTUAL_MENU) + TITLE:=VirtIO balloon driver + DEPENDS:=@TARGET_x86_kvm_guest + KCONFIG:=CONFIG_VIRTIO_BALLOON + FILES:=$(LINUX_DIR)/drivers/virtio/virtio_balloon.ko + AUTOLOAD:=$(call AutoLoad,06,virtio-balloon) +endef + +define KernelPackage/virtio-balloon/description + Kernel module for VirtIO memory ballooning support +endef + +$(eval $(call KernelPackage,virtio-balloon)) + + +define KernelPackage/virtio-net + SUBMENU:=$(VIRTUAL_MENU) + TITLE:=VirtIO network driver + DEPENDS:=@TARGET_x86_kvm_guest + KCONFIG:=CONFIG_VIRTIO_NET + FILES:=$(LINUX_DIR)/drivers/net/virtio_net.ko + AUTOLOAD:=$(call AutoLoad,50,virtio_net) +endef + +define KernelPackage/virtio-net/description + Kernel module for the VirtIO paravirtualized network device +endef + +$(eval $(call KernelPackage,virtio-net)) + + +define KernelPackage/virtio-random + SUBMENU:=$(VIRTUAL_MENU) + TITLE:=VirtIO Random Number Generator support + DEPENDS:=@TARGET_x86_kvm_guest + KCONFIG:=CONFIG_HW_RANDOM_VIRTIO + FILES:=$(LINUX_DIR)/drivers/char/hw_random/virtio-rng.ko + AUTOLOAD:=$(call AutoLoad,09,virtio-rng) +endef + +define KernelPackage/virtio-random/description + Kernel module for the VirtIO Random Number Generator +endef + +$(eval $(call KernelPackage,virtio-random)) + define KernelPackage/xen-fs SUBMENU:=$(VIRTUAL_MENU) TITLE:=Xen filesystem @@ -30,8 +78,13 @@ define KernelPackage/xen-evtchn TITLE:=Xen event channels DEPENDS:=@TARGET_x86_xen_domu KCONFIG:=CONFIG_XEN_DEV_EVTCHN - FILES:=$(LINUX_DIR)/drivers/xen/evtchn.ko - AUTOLOAD:=$(call AutoLoad,06,evtchn) + ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),ge,2.6.37)),1) + FILES:=$(LINUX_DIR)/drivers/xen/xen-evtchn.ko + AUTOLOAD:=$(call AutoLoad,06,xen-evtchn) + else + FILES:=$(LINUX_DIR)/drivers/xen/evtchn.ko + AUTOLOAD:=$(call AutoLoad,06,evtchn) + endif endef define KernelPackage/xen-evtchn/description @@ -108,3 +161,19 @@ define KernelPackage/xen-netdev/description endef $(eval $(call KernelPackage,xen-netdev)) + + +define KernelPackage/xen-pcidev + SUBMENU:=$(VIRTUAL_MENU) + TITLE:=Xen PCI device frontend + DEPENDS:=@TARGET_x86_xen_domu @!LINUX_2_6_30&&!LINUX_2_6_31&&!LINUX_2_6_32&&!LINUX_2_6_36 + KCONFIG:=CONFIG_XEN_PCIDEV_FRONTEND + FILES:=$(LINUX_DIR)/drivers/xen/platform-pci.ko + AUTOLOAD:=$(call AutoLoad,10,xen-pcifront) +endef + +define KernelPackage/xen-pcidev/description + Kernel module for the Xen network device frontend +endef + +$(eval $(call KernelPackage,xen-pcidev))