mirror of
https://github.com/openwrt/openwrt.git
synced 2026-01-01 00:34:42 +04:00
591 lines
15 KiB
Makefile
591 lines
15 KiB
Makefile
#
|
|
# Copyright (C) 2006 OpenWrt.org
|
|
#
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
# See /LICENSE for more information.
|
|
#
|
|
# $Id$
|
|
|
|
USB_MENU:=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
|
|
USBHID_DIR?=hid/usbhid
|
|
USBINPUT_DIR?=input/misc
|
|
|
|
define usbdep
|
|
SUBMENU:=$(USB_MENU)
|
|
DEPENDS:=kmod-usb-core $(1)
|
|
endef
|
|
|
|
|
|
define KernelPackage/usb-core
|
|
SUBMENU:=$(USB_MENU)
|
|
TITLE:=Support for USB
|
|
DEPENDS:=@USB_SUPPORT
|
|
KCONFIG:=CONFIG_USB
|
|
AUTOLOAD:=$(call AutoLoad,20,usbcore)
|
|
endef
|
|
|
|
define KernelPackage/usb-core/2.4
|
|
FILES:=$(LINUX_DIR)/drivers/usb/usbcore.$(LINUX_KMOD_SUFFIX)
|
|
endef
|
|
|
|
define KernelPackage/usb-core/2.6
|
|
FILES:=$(LINUX_DIR)/drivers/usb/core/usbcore.$(LINUX_KMOD_SUFFIX)
|
|
endef
|
|
|
|
define KernelPackage/usb-core/description
|
|
Kernel support for USB
|
|
endef
|
<