summaryrefslogtreecommitdiffstats
path: root/package/kernel/modules
diff options
context:
space:
mode:
authorhauke <hauke@3c298f89-4303-0410-b956-a3cf2f4a3e73>2012-01-18 17:13:23 +0000
committerhauke <hauke@3c298f89-4303-0410-b956-a3cf2f4a3e73>2012-01-18 17:13:23 +0000
commit59006bd473f95583cf3f1c50b1d43cfbef8a30bf (patch)
tree38d442d92a7063505597b8a3ca88c3f2e44c48f7 /package/kernel/modules
parentacf4b409c3c763245510b03b14c03ee9d97291ff (diff)
packages: kernel: add usb-common.ko to usb package for kernel >= 3.2
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29776 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/kernel/modules')
-rw-r--r--package/kernel/modules/usb.mk11
1 files changed, 9 insertions, 2 deletions
diff --git a/package/kernel/modules/usb.mk b/package/kernel/modules/usb.mk
index fd027bca6..d92f9ce03 100644
--- a/package/kernel/modules/usb.mk
+++ b/package/kernel/modules/usb.mk
@@ -16,8 +16,15 @@ define KernelPackage/usb-core
TITLE:=Support for USB
DEPENDS:=@USB_SUPPORT
KCONFIG:=CONFIG_USB CONFIG_XPS_USB_HCD_XILINX=n CONFIG_USB_FHCI_HCD=n
- FILES:=$(LINUX_DIR)/drivers/usb/core/usbcore.ko
- AUTOLOAD:=$(call AutoLoad,20,usbcore,1)
+ ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),ge,3.2)),1)
+ FILES:= \
+ $(LINUX_DIR)/drivers/usb/core/usbcore.ko \
+ $(LINUX_DIR)/drivers/usb/usb-common.ko
+ AUTOLOAD:=$(call AutoLoad,20,usb-common usbcore,1)
+ else
+ FILES:=$(LINUX_DIR)/drivers/usb/core/usbcore.ko
+ AUTOLOAD:=$(call AutoLoad,20,usbcore,1)
+ endif
$(call AddDepends/nls)
endef