Files
openwrt/package/kernel/modules/usb.mk
Florian Fainelli bbf087176a Fix AutoLoad macro typos (#2765)
SVN-Revision: 9615
2007-11-28 13:33:59 +00:00

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