USBMENU:=USB Support
-# This is 2.6.22 specific
-#ifeq ($(KERNEL),2.4)
- USBNET_DIR=usb/net
-#else
-# USBNET_DIR=net/usb
-#endif
+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
+USBHID_DIR?=hid/usbhid
+USBINPUT_DIR?=input/misc
define usbdep
SUBMENU:=$(USBMENU)
endef
define KernelPackage/usb-hid/2.6
- FILES:=$(LINUX_DIR)/drivers/usb/input/usbhid.ko
+ FILES:=$(LINUX_DIR)/drivers/$(USBHID_DIR)/usbhid.ko
endef
$(eval $(call KernelPackage,usb-hid))
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))