packages: kernel: add usb-common.ko to usb package for kernel >= 3.2
authorHauke Mehrtens <hauke@hauke-m.de>
Wed, 18 Jan 2012 17:13:23 +0000 (17:13 +0000)
committerHauke Mehrtens <hauke@hauke-m.de>
Wed, 18 Jan 2012 17:13:23 +0000 (17:13 +0000)
SVN-Revision: 29776

package/kernel/modules/usb.mk

index fd027bca613962f99ac0358a601dd442bbc92457..d92f9ce032f02c0a02734fadb9a9dbf8d35552ba 100644 (file)
@@ -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