aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2011-02-23 20:13:40 +0000
committerJo-Philipp Wich <jow@openwrt.org>2011-02-23 20:13:40 +0000
commitf84ba3d9818ff655528ab2f9b8b761c8b595e083 (patch)
tree3e65a8b558194e60b316585a4ea68cee0a0aa751
parentb4c7bd03ac48a42fcdf3d7b406ba4303c27357c6 (diff)
downloadupstream-f84ba3d9818ff655528ab2f9b8b761c8b595e083.tar.gz
upstream-f84ba3d9818ff655528ab2f9b8b761c8b595e083.tar.bz2
upstream-f84ba3d9818ff655528ab2f9b8b761c8b595e083.zip
kernel: fix kmod-xen-evtchn for Linux 2.6.37+
SVN-Revision: 25668
-rw-r--r--package/kernel/modules/virtual.mk25
1 files changed, 23 insertions, 2 deletions
diff --git a/package/kernel/modules/virtual.mk b/package/kernel/modules/virtual.mk
index 9930bc338f..67e04a08f0 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
+ KCONFIG:=CONFIG_XEN_PCIDEV_FRONTEND
+ FILES:=$(LINUX_DIR)/drivers/net/xen-pcifront.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))