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
$(eval $(call KernelPackage,usb-serial-visor))
+define KernelPackage/usb-serial-option
+ $(call usbdep,kmod-usb-serial)
+ TITLE:=Support for Option HSDPA modems
+ DESCRIPTION:=Kernel support for Option HSDPA modems
+ DEPENDS:=@LINUX_2_6
+ KCONFIG:=$(CONFIG_USB_SERIAL_OPTION)
+ FILES:=$(LINUX_DIR)/drivers/usb/serial/option.$(LINUX_KMOD_SUFFIX)
+ AUTOLOAD:=$(call AutoLoad,65,option)
+endef
+$(eval $(call KernelPackage,usb-serial-option))
+
define KernelPackage/usb-storage
$(call usbdep,+kmod-scsi-core)
endef
define KernelPackage/usb-pwc/2.6
- FILES:=$(LINUX_DIR)/drivers/usb/media/pwc/pwc.$(LINUX_KMOD_SUFFIX)
+ FILES:=$(LINUX_DIR)/drivers/media/video/pwc/pwc.$(LINUX_KMOD_SUFFIX)
endef
$(eval $(call KernelPackage,usb-pwc))
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))