summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2012-01-18 17:13:23 +0000
committerHauke Mehrtens <hauke@hauke-m.de>2012-01-18 17:13:23 +0000
commita671c720b45e60f2eca1ff59c3f3b8c0725a598c (patch)
tree5e2944c1f8693b9fd20f784ae980332c0592481c /package
parentd4465bee36af3fec80666aa279ef869e4d771f5d (diff)
downloadmtk-20170518-a671c720b45e60f2eca1ff59c3f3b8c0725a598c.zip
mtk-20170518-a671c720b45e60f2eca1ff59c3f3b8c0725a598c.tar.gz
mtk-20170518-a671c720b45e60f2eca1ff59c3f3b8c0725a598c.tar.bz2
packages: kernel: add usb-common.ko to usb package for kernel >= 3.2
SVN-Revision: 29776
Diffstat (limited to 'package')
-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 fd027bc..d92f9ce 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