X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/0559407398bb3f420f0366f5fc1fa8668a78bc82..601a1ab64c00f76237baa40fa5a70bb3563ab553:/package/kernel/modules/usb.mk diff --git a/package/kernel/modules/usb.mk b/package/kernel/modules/usb.mk index 18e711e0b..12a55d75b 100644 --- a/package/kernel/modules/usb.mk +++ b/package/kernel/modules/usb.mk @@ -11,15 +11,16 @@ USBMENU:=USB Support ifeq ($(KERNEL),2.4) USBNET_DIR:=usb/net endif + ifeq ($(KERNEL_PATCHVER),2.6.21) USBNET_DIR:=usb/net + USBHID_DIR:=usb/input + USBINPUT_DIR:=usb/input endif -USBNET_DIR?=net/usb -ifeq ($(KERNEL_PATCHVER),2.6.21) - USBHID_DIR:=drivers/usb/input -endif -USBHID_DIR?=drivers/hid/usbhid +USBNET_DIR?=net/usb +USBHID_DIR?=hid/usbhid +USBINPUT_DIR?=input/misc define usbdep SUBMENU:=$(USBMENU) @@ -406,7 +407,7 @@ define KernelPackage/usb-hid endef define KernelPackage/usb-hid/2.6 - FILES:=$(LINUX_DIR)/$(USBHID_DIR)/usbhid.ko + FILES:=$(LINUX_DIR)/drivers/$(USBHID_DIR)/usbhid.ko endef $(eval $(call KernelPackage,usb-hid)) @@ -415,7 +416,7 @@ define KernelPackage/usb-yealink TITLE:=USB Yealink VOIP phone DESCRIPTION:=Kernel support for Yealink VOIP phone KCONFIG:=$(CONFIG_USB_YEALINK) - FILES:=$(LINUX_DIR)/drivers/usb/input/yealink.ko + FILES:=$(LINUX_DIR)/drivers/$(USBINPUT_DIR)/yealink.ko AUTOLOAD:=$(call AutoLoad,70,yealink) endef $(eval $(call KernelPackage,usb-yealink))