X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/8e3dbe3870d77e98309852ab340aa3ccb9aed845..b7660536c6ed47d9c16645534599a3d63295ca82:/package/kernel/modules/virtual.mk diff --git a/package/kernel/modules/virtual.mk b/package/kernel/modules/virtual.mk index 9930bc338..fc372b568 100644 --- a/package/kernel/modules/virtual.mk +++ b/package/kernel/modules/virtual.mk @@ -78,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 @@ -156,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_37||LINUX_2_6_38 + 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))